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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: elaine_sit at yahoo dot com
New email:
PHP Version: OS:

 

 [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: Tue Apr 23 13:01:29 2024 UTC