|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-06 10:50 UTC] laruence@php.net
-Type: Bug
+Type: Security
-Private report: No
+Private report: Yes
[2012-11-07 09:13 UTC] laruence@php.net
[2012-11-07 09:13 UTC] laruence@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: laruence
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ max_input_vars doesn't filter variables when mbstring.encoding_translation = On -- mbstring.encoding_translation = On max_input_vars = 2 Test script: --------------- <html> <body> <form action="" method="post"> <input type="hidden" name="value01" value="test01"> <input type="hidden" name="value02" value="test02"> <input type="hidden" name="value03" value="test03"> <input type="hidden" name="value04" value="test04"> <input type="submit" value="submit"> </form> <?php var_dump($_POST); ?> </body> </html> Expected result: ---------------- Warning: Unknown: Input variables exceeded 2. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 array(2) { ["value01"]=> string(6) "test01" ["value02"]=> string(6) "test02" } Actual result: -------------- array(4) { ["value01"]=> string(6) "test01" ["value02"]=> string(6) "test02" ["value03"]=> string(6) "test03" ["value04"]=> string(6) "test04" }