projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c4f91b
)
Too many htmlspecialchars in link() for title attribute
author
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 20 Jan 2010 19:16:21 +0000
(12:16 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 20 Jan 2010 19:16:21 +0000
(12:16 -0700)
For example, things like '<' should be specified as '<', NOT
'&<'
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
f764f8b
..
16aa953
100644
(file)
--- 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;