MDL-12338 prevent KSES from breaking í chars in alt/title tags - credit goes to Eloy
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user