cvs: pear /HTML_QuickForm/Elements select.php
| From: | Bertrand Mansion | Date: | Thu, 31 Jan 2002 18:33:49 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/Elements select.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2261@lists.php.net to get a copy of this message | ||
mansion Thu Jan 31 13:33:49 2002 EDT
Modified files:
/pear/HTML_QuickForm/Elements select.php
Log:
Add htmlentities to option text
Index: pear/HTML_QuickForm/Elements/select.php
diff -u pear/HTML_QuickForm/Elements/select.php:1.5 pear/HTML_QuickForm/Elements/select.php:1.6
--- pear/HTML_QuickForm/Elements/select.php:1.5 Thu Jan 31 13:28:23 2002
+++ pear/HTML_QuickForm/Elements/select.php Thu Jan 31 13:33:48 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: select.php,v 1.5 2002/01/31 18:28:23 mansion Exp $
+// $Id: select.php,v 1.6 2002/01/31 18:33:48 mansion Exp $
require_once('HTML/QuickForm/Elements/element.php');
@@ -376,7 +376,8 @@
}
$attrString = $this->_getAttrString($option['attr']);
$strHtml .=
- '<option' . $attrString . '>' .
$option['text'] . '</option>';
+ '<option' . $attrString . '>' .
+ htmlentities($option['text']) . '</option>';
}
$strHtml .= $tabs . '</select>';
}