cvs: pearweb /public_html/bugs/include functions.inc

From: Date: Tue, 24 Apr 2007 21:38:16 +0000
Subject: cvs: pearweb /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-46141@lists.php.net to get a copy of this message
davidc Tue Apr 24 21:38:16 2007 UTC Modified files: /pearweb/public_html/bugs/include functions.inc Log: - More possible bugs http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.146&r2=1.147&diff_format=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.146 pearweb/public_html/bugs/include/functions.inc:1.147 --- pearweb/public_html/bugs/include/functions.inc:1.146 Tue Apr 24 21:36:07 2007 +++ pearweb/public_html/bugs/include/functions.inc Tue Apr 24 21:38:16 2007 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: functions.inc,v 1.146 2007/04/24 21:36:07 davidc Exp $ + * @version $Id: functions.inc,v 1.147 2007/04/24 21:38:16 davidc Exp $ */ @@ -460,13 +460,14 @@ if ($current == $v[0]) { echo ' selected="selected"'; } - echo ' value = "' . $v[0] . '">' . $v[0] . ' (' . $v[1] . ")</option>\n"; + + echo ' value = "' . htmlspecialchars($v[0]) . '">' . htmlspecialchars($v[0]) . ' (' . htmlspecialchars($v[1]) . ")</option>\n"; if ($current == $v[0]) { $use++; } } if (!$use && $current) { - echo '<option selected="selected">' . $current . "</option>\n"; + echo '<option selected="selected">' . htmlspecialchars($current) . "</option>\n"; } else { echo '<option>CVS</option>' . "\n"; }

« previous php.pear.cvs (#46141) next »