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
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: 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: Fri May 17 02:01:32 2024 UTC