php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36929 "\" turns to "\\" when passing parameter from page1 to page 2
Submitted: 2006-03-31 08:30 UTC Modified: 2006-03-31 08:53 UTC
From: timo dot ahokas at nesteoil dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.1.2 OS: XP
Private report: No CVE-ID: None
 [2006-03-31 08:30 UTC] timo dot ahokas at nesteoil dot com
Description:
------------
"\" turns to "\\" when passing parameter from page1 to page 2

php WITH SAMBAR 6

Reproduce code:
---------------
CODE FOR PAGE1:
<html>
<head>
  <title></title>
</head>
<body>
<?php
    echo"
    <body>
    <form name='zz_something' action='Nextpage.php?sendedparam=ahokatim\something' method='post'>
    <CENTER><INPUT TYPE=SUBMIT VALUE='Sign in'></CENTER>
    </form>
    </body>";
?>
</body>
</html>

CODE FOR PAGE2:
<html>
<head>
  <title></title>
</head>

<body>

<?php
  $regresult	= $_REQUEST['sendedparam'];
    echo"
    <body>
    <form name='zz_Next'>
    $regresult
    </form>
    </body>";
?>
</body>

</html>



Expected result:
----------------
ahokatim\something 

Actual result:
--------------
ahokatim\\something 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-31 08:53 UTC] edink@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Hint: check your magic_quotes php.ini setting.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 03:01:29 2024 UTC