Skip to content

Commit

Permalink
Global: Fix df47eac where the filter for "on" attributes was too wide…
Browse files Browse the repository at this point in the history
… and replaced normal text containing " on" - refs #5887
  • Loading branch information
ywarnier committed Oct 24, 2024
1 parent be38910 commit 368dfaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/formvalidator/FormValidator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2111,5 +2111,5 @@ function attr_on_filter($html)
{
$prefix = uniqid('data-cke-').'-';

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

0 comments on commit 368dfaf

Please sign in to comment.