cvs: php4 /pear/HTML Common.php Select.php

From: Date: Mon, 08 Apr 2002 09:32:00 +0000
Subject: cvs: php4 /pear/HTML Common.php Select.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3136@lists.php.net to get a copy of this message
mansion Mon Apr 8 05:32:00 2002 EDT Modified files: /php4/pear/HTML Common.php Select.php Log: htmlentities > htmlspecialchars for charset compatibility as noticed by Wojciech Gdela. Index: php4/pear/HTML/Common.php diff -u php4/pear/HTML/Common.php:1.14 php4/pear/HTML/Common.php:1.15 --- php4/pear/HTML/Common.php:1.14 Thu Feb 28 03:27:13 2002 +++ php4/pear/HTML/Common.php Mon Apr 8 05:32:00 2002 @@ -16,7 +16,7 @@ // | Author: Adam Daniel <adaniel1@eesus.jnj.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.14 2002/02/28 08:27:13 sebastian Exp $ +// $Id: Common.php,v 1.15 2002/04/08 09:32:00 mansion Exp $ /** * Base class for all HTML classes @@ -95,7 +95,7 @@ if (is_int($key)) { $strAttr .= ' ' . strtolower($value) . '="' . strtolower($value) . '"'; } else { - $strAttr .= ' ' . strtolower($key) . '="' . htmlentities($value) . '"'; + $strAttr .= ' ' . strtolower($key) . '="' . htmlspecialchars($value) . '"'; } } } Index: php4/pear/HTML/Select.php diff -u php4/pear/HTML/Select.php:1.11 php4/pear/HTML/Select.php:1.12 --- php4/pear/HTML/Select.php:1.11 Thu Mar 28 08:28:16 2002 +++ php4/pear/HTML/Select.php Mon Apr 8 05:32:00 2002 @@ -16,7 +16,7 @@ // | Author: Adam Daniel <adaniel1@eesus.jnj.com> | // +----------------------------------------------------------------------+ // -// $Id: Select.php,v 1.11 2002/03/28 13:28:16 yavo Exp $ +// $Id: Select.php,v 1.12 2002/04/08 09:32:00 mansion Exp $ require_once 'PEAR.php'; require_once 'HTML/Common.php'; @@ -318,7 +318,7 @@ $attrString = $this->_getAttrString($option['attr']); $strHtml .= '<option' . $attrString . '>' . - htmlentities($option['text']) . '</option>'; + htmlspecialchars($option['text']) . '</option>'; } $strHtml .= '</select>'; return $strHtml;

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