From: Michael M Slusarz Date: Wed, 20 Jan 2010 19:16:21 +0000 (-0700) Subject: Too many htmlspecialchars in link() for title attribute X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c92729ed228294b9d29b8a0e73be90e06ff45ab7;p=horde.git Too many htmlspecialchars in link() for title attribute For example, things like '<' should be specified as '<', NOT '&<' --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index f764f8b25..16aa95382 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -1293,9 +1293,8 @@ HTML; $old_error = error_reporting(0); $title = str_replace( array("\r", "\n"), '', - htmlspecialchars( - nl2br(htmlspecialchars($title, ENT_QUOTES, $charset)), - ENT_QUOTES, $charset)); + nl2br(htmlspecialchars($title, ENT_QUOTES, $charset)) + ); error_reporting($old_error); } $attributes['title.raw'] = $title;