svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml

From: Date: Sat, 09 Oct 2010 19:56:44 +0000
Subject: svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7200@lists.php.net to get a copy of this message
vrana Sat, 09 Oct 2010 19:56:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=304219 Log: Prevent XSS Changed paths: U phpdoc/en/trunk/reference/network/functions/setcookie.xml Modified: phpdoc/en/trunk/reference/network/functions/setcookie.xml =================================================================== --- phpdoc/en/trunk/reference/network/functions/setcookie.xml 2010-10-09 19:22:19 UTC (rev 304218) +++ phpdoc/en/trunk/reference/network/functions/setcookie.xml 2010-10-09 19:56:44 UTC (rev 304219) @@ -255,6 +255,8 @@ // after the page reloads, print them out if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $value) { + $name = htmlspecialchars($name); + $value = htmlspecialchars($value); echo "$name : $value <br />\n"; } }

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