forms
forms copied to clipboard
Form::validateMaxPostSize() never called
I think validateMaxPostSize method is actually never called in case POST data exceeds $_SERVER['CONTENT_LENGTH']
.
It is meant to be called from validate() which is called from fireEvents but it can never be called due this condition as it calls https://github.com/nette/application/blob/master/src/Application/UI/Form.php#L108 which returns always FALSE in that case
How could POST data exceed $_SERVER['CONTENT_LENGTH']
? Maybe related https://github.com/nette/nette/pull/793/files
Yes, it is related, thanks! POST data can be exceeded if you try to upload too large file
Hmm, this is related to 2.2, because of this nette/application@1f492cfa02038c8c5b0b5e4a927532d09fa169db