httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54218] POST value duplicated when passed to PHP
Date Wed, 28 Nov 2012 17:19:19 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54218

--- Comment #5 from Scott Arciszewski <sarciszewski@knights.ucf.edu> ---
(In reply to comment #4)
> What did the client put on the wire?
> What did PHP see?
HttpRequester says:

POST https://[domain]/test.php
Content-Type: application/x-www-form-urlencoded
menu=Blah

 -- response --
200 OK
Date:  Wed, 28 Nov 2012 17:09:35 GMT
Server:  Apache
Accept-Ranges:  bytes
X-Powered-By:  PHP/5.4.9-1~dotdeb.0
Strict-Transport-Security:  max-age=15768000
Keep-Alive:  timeout=15, max=100
Connection:  Keep-Alive
Transfer-Encoding:  chunked
Content-Type:  text/plain
menu=Blahmenu=Blah
=========================================================
array(1) {
  ["menu"]=>
  string(13) "Blahmenu=Blah"
}
> What does a non-PHP CGI think the body was?
test.pl
  #!/usr/bin/perl
  use strict;
  use CGI ':standard';
  # written by steve andrews 20060222, 20071107
  # modified for this bug report

  print "Content-Type: text/html\n\n";
  print "<html>\n<head>\n<title>Your Answers</title>\n";
  print "<style type='text/css'>\n  th {background-color: coral; }\n</style>";
  print "</head>\n<body>\n";
  print "<table style='border: thin solid black;' ";
  print "border='1' >\n";
  print "<tr>\n<th>Field:</th><th>Value:</th>\n</tr>";
  foreach my $name ( param() ) 
    {
      my @values = param ($name);
      print "<tr>\n";
      print "<td>$name</td><td>@values</td>\n";
      print "</tr>\n";
    }
  print "</table>\n</body>\n</html>\n";

Output:
Field:    Value:
menu    Blah

So is this a PHP 5.4 bug?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message