Closed
Description
It seems like the the latest merge on forms have an error in its regexp.
The function getNormalizedIniPostMaxSize() returns "8M" but if I do a print_r() on $match
after the regexp it returns this:
Array ( [0] => 8M [1] => [2] => 8M [3] => )
Which causes the return code to do 8 * 1 instead of 8 * 10.
So my form post is 92 bytes and I get "The uploaded file was too large. Please try to upload a smaller file." (from here) Because it compares 92 bytes to 8 bytes instead of 8 MB.
Edit: The old code works.
Metadata
Metadata
Assignees
Labels
No labels