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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
10 + 14 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 19 18:01:28 2024 UTC