]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12338 prevent KSES from breaking í chars in alt/title tags - credit goes to Eloy...
authorskodak <skodak>
Tue, 25 Dec 2007 20:56:36 +0000 (20:56 +0000)
committerskodak <skodak>
Tue, 25 Dec 2007 20:56:36 +0000 (20:56 +0000)
lib/kses.php

index 3c04e6626a09a1182f1801af6bb23d48bd1fd4e2..578aadfcd059be39f075661f35a2d2b3be5f0caf 100644 (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)