Skip to content

Commit 368dfaf

Browse files
committed
Global: Fix df47eac where the filter for "on" attributes was too wide and replaced normal text containing " on" - refs #5887
1 parent be38910 commit 368dfaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/formvalidator/FormValidator.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,5 +2111,5 @@ function attr_on_filter($html)
21112111
{
21122112
$prefix = uniqid('data-cke-').'-';
21132113

2114-
return preg_replace('/(\s)(on)/i', '$1'.$prefix.'$2', $html);
2114+
return preg_replace('/\b(on[a-z]+)\b\s*=/i', '$1'.$prefix.'$2', $html);
21152115
}

0 commit comments

Comments
 (0)