php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11752 Backslash parameter passing in Forms
Submitted: 2001-06-27 13:40 UTC Modified: 2001-06-27 13:42 UTC
From: Guido dot Laubner at morse dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.0.4pl1 OS: Solaris 8 / Intel
Private report: No CVE-ID: None
 [2001-06-27 13:40 UTC] Guido dot Laubner at morse dot com
Here's instructions on how to reproduce :

1. Create a php-file with this content :
<HTML> <BODY> <?php print( $p ); ?> </BODY> </HTML>
and call it whatever you want (eg. blah.php)

2. Next call the URL eg. http://server/blah.php?p=/
2a. Same with http://server/blah.php?p=%5c
The apache access_log shows the very same url one typed into
netscape or explorer, so this looks fine to me.

3. Look at the output page. It'll show 2 (in words : two)
backslashes

Why is this ? How do i pass just one backslash ?

Thanks a lot
Cheers
Guido



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 13:42 UTC] sniper@php.net
RFTM.

(hint. check your php.ini..and set magic_quotes_gpc=off)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC