Skip to content

Commit 37c2f0f

Browse files
committed
MAGETWO-67521: Fixed coding standard violations in the Framework\Filter namespace #9282
- Merge Pull Request #9282 from dverkade/magento2:Fix_coding_standard_violation_in_Framework-Filter
2 parents 1a8dd8c + 3c35ebe commit 37c2f0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/internal/Magento/Framework/Filter/Input/MaliciousCode.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* See COPYING.txt for license details.
77
*/
88

9-
// @codingStandardsIgnoreFile
10-
119
namespace Magento\Framework\Filter\Input;
1210

1311
class MaliciousCode implements \Zend_Filter_Interface
@@ -29,7 +27,8 @@ class MaliciousCode implements \Zend_Filter_Interface
2927
//js in the style attribute
3028
'/style=[^<]*((expression\s*?\([^<]*?\))|(behavior\s*:))[^<]*(?=\/*\>)/Uis',
3129
//js attributes
32-
'/(ondblclick|onclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onload|onunload|onerror)=[^<]*(?=\/*\>)/Uis',
30+
'/(ondblclick|onclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|'.
31+
'onload|onunload|onerror)=[^<]*(?=\/*\>)/Uis',
3332
//tags
3433
'/<\/?(script|meta|link|frame|iframe|object).*>/Uis',
3534
//base64 usage

0 commit comments

Comments
 (0)