|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-07 13:16 UTC] bhuisgen at hbis dot fr
[2009-05-12 03:14 UTC] andre dot huebner at gmx dot de
[2010-11-21 19:52 UTC] martynas at venck dot us
[2010-11-26 08:25 UTC] martynas at venck dot us
[2010-11-26 08:36 UTC] andre dot huebner at gmx dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Description: ------------ htscanner is pretty rude to serverarrays if incorrect values in .htaccess are given. for example small upload form for files with simple printing of Predefined servervariables at the end. Reproduce code: --------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>File-Upload</title> </head> <body> <form action="post.php" method="post" enctype="multipart/form-data"> <p>please choose a file:<br> <input name="myfilename" type="file" size="50" maxlength="100000" accept="text/*"> <input type="submit" name="submit"> </p> </form> <? print_r($_POST); print_r($_FILES); ?> </body> </html> Expected result: ---------------- case1, correct .htaccess php_value post_max_size 12M shows: Array ( [submit] => Anfrage senden ) Array ( [Datei] => Array ( [name] => filename.txt [type] => text/plain [tmp_name] => /tmp/phpjHXC9u [error] => 0 [size] => 68 ) ) Actual result: -------------- incorrect .htaccess with small mistake (missing unit M) php_value post_max_size 12 shows: Array ( ) Array ( ) seems that small mistake in .htaccess destroys whole serverarray. in my opinion htscanner should ignore not fitting settings. regards, andre