From b942953b7b196c16a2f7777bbc55ac8e1661b655 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 1 Jul 2010 13:50:00 -0600 Subject: [PATCH] Bug #8836: Fix attribute name --- framework/Text_Filter/lib/Horde/Text/Filter/Xss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.11.0