cvs: phpdoc /en/reference/url/functions urldecode.xml
| From: | Herman Radtke | Date: | Tue, 09 Sep 2008 01:23:27 +0000 |
| Subject: | cvs: phpdoc /en/reference/url/functions urldecode.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2144@lists.php.net to get a copy of this message | ||
hradtke Tue Sep 9 01:23:27 2008 UTC
Modified files:
/phpdoc/en/reference/url/functions urldecode.xml
Log:
Added a warning about using this function with $_GET and $_REQUEST as suggested in bug #44815.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/url/functions/urldecode.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/url/functions/urldecode.xml
diff -u phpdoc/en/reference/url/functions/urldecode.xml:1.7
phpdoc/en/reference/url/functions/urldecode.xml:1.8
--- phpdoc/en/reference/url/functions/urldecode.xml:1.7 Wed Jun 20 22:25:34 2007
+++ phpdoc/en/reference/url/functions/urldecode.xml Tue Sep 9 01:23:27 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry xml:id="function.urldecode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>urldecode</refname>
@@ -64,6 +64,17 @@
</para>
</refsect1>
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <warning>
+ <para>
+ The superglobals $_GET and $_REQUEST are already decoded. Using
+ <function>urldecode</function> on an element in $_GET or $_REQUEST could
+ have unexpected and dangerous results.
+ </para>
+ </warning>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>