Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Backport fixes for image validation #17983

Merged
merged 4 commits into from
Feb 18, 2017
Merged

[5.3] Backport fixes for image validation #17983

merged 4 commits into from
Feb 18, 2017

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