php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1272 Parse_str escapes hard slash characters
Submitted: 1999-03-26 22:35 UTC Modified: 1999-03-27 06:44 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.7 OS:
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mlemos at acm dot org
New email:
PHP Version: OS:

 

 [1999-03-26 22:35 UTC] mlemos at acm dot org
It seems that parse_str is escaping hard slash characters (%5C).

Try this:

<?
	parse_str("value=%5C");
	echo $value,"\n";
?>

I don't think this is the correct behaviour for this function.  Even if it
is, it seems to be the same problem when parsing values passed in URIs.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-03-27 06:44 UTC] sas
Turn off magic quotes. You are seeing the effect of this option in this case.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC