Skip to content

Commit 3c35ebe

Browse files
committed
Fixed coding standard violation in the Framework\Filter namespace, so that it will be checked bij PHP CS and no longer be ignored while doing CI checks. Made the following changes:
- Removed the @codingStandardsIgnoreFile from the head of the file. - Fixed line length
1 parent e3fc5b7 commit 3c35ebe

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)