#24197 [NEW]: @$_GET[""] doesn't work properly
| From: | elaine_sit at yahoo dot com | Date: | Mon, 16 Jun 2003 02:40:35 +0000 |
| Subject: | #24197 [NEW]: @$_GET[""] doesn't work properly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-41982@lists.php.net to get a copy of this message | ||
From: elaine_sit at yahoo dot com
Operating system: Windows 2000
PHP version: 4.3.2
PHP Bug Type: Output Control
Bug description: @$_GET[""] doesn't work properly
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 bug report at http://bugs.php.net/?id=24197&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24197&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24197&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24197&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24197&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24197&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24197&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24197&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24197&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24197&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24197&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24197&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24197&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24197&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24197&r=gnused