#36929 [NEW]: "\" turns to "\\" when passing parameter from page1 to page 2

From: Date: Fri, 31 Mar 2006 06:30:59 +0000
Subject: #36929 [NEW]: "\" turns to "\\" when passing parameter from page1 to page 2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95149@lists.php.net to get a copy of this message
From: timo dot ahokas at nesteoil dot com Operating system: XP PHP version: 5.1.2 PHP Bug Type: *General Issues Bug description: "\" turns to "\\" when passing parameter from page1 to page 2 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 -- Edit bug report at http://bugs.php.net/?id=36929&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36929&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36929&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36929&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36929&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36929&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36929&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36929&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36929&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36929&r=support Expected behavior: http://bugs.php.net/fix.php?id=36929&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36929&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36929&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36929&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36929&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36929&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36929&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36929&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36929&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36929&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36929&r=mysqlcfg

« previous php.bugs (#95149) next »