MDL-12338 prevent KSES from breaking í chars in alt/title tags - credit goes to Eloy

This commit is contained in:
skodak
2007-12-25 20:55:57 +00:00
parent e262e268b2
commit fbedee57ef
+1 -1
View File
@@ -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)