ID: 24197
Updated by: [EMAIL PROTECTED]
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