Skip to content

Commit

Permalink
MDL-12338 prevent KSES from breaking í chars in alt/title tags - cred…
Browse files Browse the repository at this point in the history
…it goes to Eloy; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Dec 25, 2007
1 parent eafb9d9 commit 696c7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kses.php
Expand Up @@ -383,7 +383,7 @@ function kses_bad_protocol($string, $allowed_protocols)
###############################################################################
{
$string = kses_no_null($string);
$string = preg_replace('/\xad+/', '', $string); # deals with Opera "feature"
$string = preg_replace('/([^\xc3-\xcf])\xad+/', '\\1', $string); # deals with Opera "feature" -- moodle utf8 fix
$string2 = $string.'a';

while ($string != $string2)
Expand Down

0 comments on commit 696c7f7

Please sign in to comment.