php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24197 @$_GET[""] doesn't work properly
Submitted: 2003-06-15 21:40 UTC Modified: 2003-06-15 21:48 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: elaine_sit at yahoo dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.2 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-06-15 21:40 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-15 21:48 UTC] sniper@php.net
Turn off all magic_quotes* settings in your php.ini.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC