Skip to content

Commit 6d701b1

Browse files
committed
MC-41412: Improve inline translation.
1 parent 0583ef4 commit 6d701b1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MaliciousCode implements \Zend_Filter_Interface
3232
//tags
3333
'/<\/?(script|meta|link|frame|iframe|object).*>/Uis',
3434
//scripts
35-
'/<\?{1}\s*?(php|=).*>/Uis',
35+
'/<\?\s*?(php|=).*>/Uis',
3636
//base64 usage
3737
'/src=[^<]*base64[^<]*(?=\/*\>)/Uis',
3838
];

lib/internal/Magento/Framework/Filter/Test/Unit/Input/MaliciousCodeTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ public function filterDataProvider()
120120
'',
121121
'<? ="test" ?>',
122122
'',
123+
'<?="test?>',
124+
'',
125+
'<?=$test?>',
126+
'',
123127
],
124128
];
125129
}

0 commit comments

Comments
 (0)