#24197 [Opn->Bgs]: @$_GET[""] doesn't work properly
| From: | sniper@php.net | Date: | Mon, 16 Jun 2003 02:48:28 +0000 |
| Subject: | #24197 [Opn->Bgs]: @$_GET[""] doesn't work properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-41983@lists.php.net to get a copy of this message | ||
ID: 24197
Updated by: sniper@php.net
Reported By: elaine_sit at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows 2000
PHP Version: 4.3.2
New Comment:
Turn off all magic_quotes* settings in your php.ini.
Previous Comments:
------------------------------------------------------------------------
[2003-06-15 21:40:35] elaine_sit at yahoo dot com
Description:
------------
@$_GET[""] doesn't work properly (a backslace is added) when some
encoded chinese character contains "%5C" such as "³\" or "¥\".
Reproduce code:
---------------
=========================================================
In file "test1.php"
$name="³\¦¨¥\";
HEADER("Location:test2.php?message=".urlencode($name));
=========================================================
In file "test2.php"
$smessage = @$GET["message"];
echo urlencode($smessage)."<BR>";
=========================================================
Expected result:
----------------
In page "test2.php"
A message of "³\¦¨¥\" should be displayed properly.
Actual result:
--------------
However, a message of "³\\¦¨¥\\" is displayed where 2 "\" is added.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24197&edit=1