svn: /phpdoc/en/trunk/reference/strings/functions/ htmlentities.xml htmlspecialchars.xml

From: Date: Thu, 14 Oct 2010 06:12:16 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ htmlentities.xml htmlspecialchars.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7223@lists.php.net to get a copy of this message
cataphract Thu, 14 Oct 2010 06:12:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304388 Log: - Warn that using the ENT_IGNORE flag in htmlentities/htmlspecialchars may introduce security vulnerabilities. See Unicode Technical Report #36, section 3.6.2. Bug: http://bugs.php.net/36 (Closed) Win32 binary GPF's when using an empy array Changed paths: U phpdoc/en/trunk/reference/strings/functions/htmlentities.xml U phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml Modified: phpdoc/en/trunk/reference/strings/functions/htmlentities.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/htmlentities.xml 2010-10-14 05:37:54 UTC (rev 304387) +++ phpdoc/en/trunk/reference/strings/functions/htmlentities.xml 2010-10-14 06:12:16 UTC (rev 304388) @@ -74,7 +74,8 @@ <entry><constant>ENT_IGNORE</constant></entry> <entry> Silently discard invalid code unit sequences instead of returning - an empty string. Added in PHP 5.3.0. + an empty string. Added in PHP 5.3.0. This is provided for backwards + compatibility; avoid using it as it may have security implications. </entry> </row> </tbody> Modified: phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml 2010-10-14 05:37:54 UTC (rev 304387) +++ phpdoc/en/trunk/reference/strings/functions/htmlspecialchars.xml 2010-10-14 06:12:16 UTC (rev 304388) @@ -90,7 +90,7 @@ In addition, since 5.3.0, these constants can be combined with <constant>ENT_IGNORE</constant>. In that case, strings that contain invalid code unit sequences have those invalid sequences discarded instead of having the function - return an empty string. + return an empty string. Avoid using it, as it may have introduce vulnerabilities. </para> </listitem> </varlistentry>

« previous php.doc.cvs (#7223) next »