Skip to content

Conversation

@vlakoff
Copy link
Contributor

@vlakoff vlakoff commented Feb 18, 2017

Namely:


Note 5.3 didn't have the mistake fixed in #17943 (Fix image dimension ratio check), it was introduced in 5.4.

Backport of #17944.

`getimagesize` will fail with a notice on files smaller than 12 bytes.
This ends up becoming an ErrorException which is pretty annoying.

Suppressing the warning is enough to still end up with a `false` result
which will fail the validation gracefully instead of grueing up your
stew.
@taylorotwell taylorotwell merged commit 666a752 into laravel:5.3 Feb 18, 2017
@vlakoff vlakoff deleted the image_validation_5.3 branch February 18, 2017 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants