[php-maint] bug in libapache2-mod-php5filter
    Vladimir Getmanshchuk 
    vladget at gmail.com
       
    Fri May  9 10:12:24 UTC 2014
    
    
  
Hello!
php5filter duplicate data in POST from forms used as arrays(
http://us2.php.net/manual/en/faq.html.php#faq.html.arrays)
Here is simple way to reproduce it:
cat f.php
<!DOCTYPE html>
<html>
<head>
    <meta charset="windows-1251">
</head>
<body>
<form action="f.php" method="post" enctype="multipart/form-data">
    <input type="text" name="a">
    <input type="text" name="b[]">
    <input type="text" name="b[]">
    <button type="submit">submit</button>
</form>
<?php
if (!empty($_POST)) {
    echo '<pre>';
    echo "POST:\n";
    var_dump($_POST);
    echo '</pre>';
}
?>
</body>
</html>
libapache2-mod-php5filter as apache mod_php:
  ["a"]=>
  string(1) "1"
  ["b"]=>
  array(4) {
    [0]=>
    string(1) "2"
    [1]=>
    string(1) "3"
    [2]=>
    string(1) "2"
    [3]=>
    string(1) "3"
but it works fine with libapache2-mod-php5 as apache mod_php:
array(2) {
  ["a"]=>
  string(1) "1"
  ["b"]=>
  array(2) {
    [0]=>
    string(1) "2"
    [1]=>
    string(1) "3"
-- 
Yours sincerely,
Vladimir Getmanshchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20140509/54978c1e/attachment.html>
    
    
More information about the pkg-php-maint
mailing list