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

[stable26] fix: handle exif metadata read errors gracefully #42775

Merged
merged 1 commit into from Jan 15, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jan 15, 2024

  • Resolves: none

Summary

The ExifProvider does not check if the given $file can be read before attempting to extract metadata. I improved the code a bit by only calling getimagesizefromstring if $file->getContent() is not false.

Checklist

@st3iny st3iny added bug 3. to review Waiting for reviews labels Jan 15, 2024
@st3iny st3iny added this to the Nextcloud 26.0.11 milestone Jan 15, 2024
@st3iny st3iny self-assigned this Jan 15, 2024
@blizzz blizzz mentioned this pull request Jan 15, 2024
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@st3iny st3iny force-pushed the fix/exif-content-provider-stable26 branch from 8f0ab22 to 84408cd Compare January 15, 2024 10:21
@blizzz blizzz merged commit 679b10a into stable26 Jan 15, 2024
36 of 37 checks passed
@blizzz blizzz deleted the fix/exif-content-provider-stable26 branch January 15, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants