#20823 [Opn->Bgs]: form post results in duplicitous $_REQUEST

From: Date: Sun, 08 Dec 2002 23:19:08 +0000
Subject: #20823 [Opn->Bgs]: form post results in duplicitous $_REQUEST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27090@lists.php.net to get a copy of this message
ID: 20823 Updated by: iliaa@php.net Reported By: buckley@menacefx.com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: Redhat7.2 PHP Version: 4.3.0RC2 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. Dupe of bug #18648 Previous Comments: ------------------------------------------------------------------------ [2002-12-06 11:31:46] moriyoshi@php.net The previous comment was just a wrong post. Please ignore it :-) ------------------------------------------------------------------------ [2002-12-06 11:29:06] moriyoshi@php.net Oops, I should have meant php_strtok_r() replaces the delimiter "=" by "\0". ------------------------------------------------------------------------ [2002-12-05 12:59:27] buckley@menacefx.com MoriYoshi, I read #18648. Yes, this looks like the same problem. Seems everyone having this is running Apache2 (as I am). I put a hidden element in the form so that more than one value was submitted in the POST and *_the_problem_goes_away_*. Sniper, here are some short files which trigger the problem. forSniper.html :: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>something short for sniper@php.net - part 1</title> </head> <body> <form action="forSniperResult.php" method="POST"><input type="text" name="recipient" value="sniper"><input type="submit"></form> </body> </html> forSniperResult.php :: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>something short for sniper@php.net - part 2</title> </head> <body> who = <?php echo $_REQUEST["recipient"]; ?> </body> </html> result :: who = sniperrecipient=sniper ------------------------------------------------------------------------ [2002-12-05 10:00:47] sniper@php.net We need a _SHORT_ example script which does not have any external requirements, such as mysql.. ------------------------------------------------------------------------ [2002-12-05 03:56:31] moriyoshi@php.net Duplication of #18648? http://bugs.php.net/18648 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20823 -- Edit this bug report at http://bugs.php.net/?id=20823&edit=1

« previous php.bugs (#27090) next »