cvs: pearweb /include pear-format-html.php
| From: | Mark Wiesemann | Date: | Sat, 07 Mar 2009 15:55:59 +0000 |
| Subject: | cvs: pearweb /include pear-format-html.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8237@lists.php.net to get a copy of this message | ||
wiesemann Sat Mar 7 15:55:59 2009 UTC
Modified files:
/pearweb/include pear-format-html.php
Log:
- fixed bug #15989: Automatic bug links: htmlspecialchars() needs to be used for "title"
attribute
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.275&r2=1.276&diff_format=u
Index: pearweb/include/pear-format-html.php
diff -u pearweb/include/pear-format-html.php:1.275 pearweb/include/pear-format-html.php:1.276
--- pearweb/include/pear-format-html.php:1.275 Fri Feb 13 11:50:55 2009
+++ pearweb/include/pear-format-html.php Sat Mar 7 15:55:59 2009
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-format-html.php,v 1.275 2009/02/13 11:50:55 cweiske Exp $
+ $Id: pear-format-html.php,v 1.276 2009/03/07 15:55:59 wiesemann Exp $
*/
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler');
@@ -683,7 +683,7 @@
$url,
($target ? ' target="'.$target.'"' : ''),
($extras ? ' '.$extras : ''),
- ($title ? ' title="'.$title.'"' : ''),
+ ($title ? ' title="'.htmlspecialchars($title).'"' :
''),
($linktext != '' ? $linktext : $url)
);
}