From 696c7f753f917ebe16cd47748e6cb4755ab1279d Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 25 Dec 2007 20:56:36 +0000 Subject: [PATCH] =?utf8?q?MDL-12338=20prevent=20KSES=20from=20breaking=20?= =?utf8?q?=C3=AD=20chars=20in=20alt/title=20tags=20-=20credit=20goes=20to?= =?utf8?q?=20Eloy;=20merged=20from=20MOODLE=5F19=5FSTABLE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/kses.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kses.php b/lib/kses.php index 3c04e6626a..578aadfcd0 100644 --- a/lib/kses.php +++ b/lib/kses.php @@ -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) -- 2.39.5