forms icon indicating copy to clipboard operation
forms copied to clipboard

Form::validateMaxPostSize() never called

Open Ciki opened this issue 10 years ago • 3 comments

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

Ciki avatar Aug 02 '14 12:08 Ciki

How could POST data exceed $_SERVER['CONTENT_LENGTH']? Maybe related https://github.com/nette/nette/pull/793/files

JanTvrdik avatar Aug 02 '14 13:08 JanTvrdik

Yes, it is related, thanks! POST data can be exceeded if you try to upload too large file

Ciki avatar Aug 02 '14 13:08 Ciki

Hmm, this is related to 2.2, because of this nette/application@1f492cfa02038c8c5b0b5e4a927532d09fa169db

dg avatar Aug 06 '14 21:08 dg