cvs: pear /HTML_QuickForm/QuickForm select.php
| From: | Bertrand Mansion | Date: | Mon, 08 Apr 2002 08:44:11 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm select.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3133@lists.php.net to get a copy of this message | ||
mansion Mon Apr 8 04:44:11 2002 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm select.php
Log:
htmlentities > htmlspecialchars for charset compatibility as noticed by Wojciech Gdela.
Index: pear/HTML_QuickForm/QuickForm/select.php
diff -u pear/HTML_QuickForm/QuickForm/select.php:1.1 pear/HTML_QuickForm/QuickForm/select.php:1.2
--- pear/HTML_QuickForm/QuickForm/select.php:1.1 Fri Mar 22 06:03:38 2002
+++ pear/HTML_QuickForm/QuickForm/select.php Mon Apr 8 04:44:11 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: select.php,v 1.1 2002/03/22 11:03:38 mansion Exp $
+// $Id: select.php,v 1.2 2002/04/08 08:44:11 mansion Exp $
require_once('HTML/QuickForm/Elements/element.php');
@@ -377,7 +377,7 @@
$attrString = $this->_getAttrString($option['attr']);
$strHtml .=
'<option' . $attrString . '>' .
- htmlentities($option['text']) . '</option>';
+ htmlspecialchars($option['text']) . '</option>';
}
$strHtml .= $tabs . '</select>';
}