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
 [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 15:01:33 2025 UTC