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 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 09:01:32 2025 UTC