|  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
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: elaine_sit at yahoo dot com
New email:
PHP Version: OS:


 [2003-06-15 21:40 UTC] elaine_sit at yahoo dot com
@$_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"
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.


Add a Patch

Pull Requests

Add a Pull Request


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

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 11:01:31 2024 UTC