Added a warning about using this function with $_GET and $_REQUEST as suggested in bug #44815.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@266011 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Herman J. Radtke III 2008-09-09 01:23:27 +00:00
parent c3385fd893
commit d0ea8d4d00

View file

@ -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 @@ while ($i < count($a)) {
</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>