Skip to content

Commit 722a9e0

Browse files
committed
MC-15311: [Sec] PageBuilder XSS Injection Possible Through Block on HTML Code Content Type For CSS Classes Attribute & in TinyMCE
- allow spaces in css class field
1 parent 21320f6 commit 722a9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/validator-rules-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ define([
5858
* @return {Boolean}
5959
*/
6060
function validateCssClass(str) {
61-
return (/^[a-zA-Z_\-\d]+$/i).test(str);
61+
return (/^[a-zA-Z _\-\d]+$/i).test(str);
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)