From: Michael M Slusarz Date: Thu, 1 Jul 2010 19:50:00 +0000 (-0600) Subject: Bug #8836: Fix attribute name X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b942953b7b196c16a2f7777bbc55ac8e1661b655;p=horde.git Bug #8836: Fix attribute name --- diff --git a/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php b/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php index f9bfcc9ec..4be592970 100644 --- a/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php +++ b/framework/Text_Filter/lib/Horde/Text/Filter/Xss.php @@ -308,10 +308,10 @@ class Horde_Text_Filter_Xss extends Horde_Text_Filter_Base if (preg_match('/]*>/si', $text, $matches, PREG_OFFSET_CAPTURE)) { $end = $matches[0][1] + strlen($matches[0][0]); $text = substr($text, 0, $end) . - '' . + '' . substr($text, $end); } else { - $text = '' . $text; + $text = '' . $text; } }