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

rss: Reliably validate images. #303

Merged
merged 1 commit into from Apr 17, 2023

Conversation

synrg
Copy link
Contributor

@synrg synrg commented Apr 13, 2023

  • no longer fails to recognize some JPEG images set in the embed with [p]rss embed image or [p]rss embed thumbnail
  • replaces the deprecated and broken imghdr.what() with filetype.guess()
  • filetype documentation says only 261 bytes are needed, so only that many bytes are now read from stream

@aikaterna aikaterna merged commit 76994e6 into aikaterna:v3 Apr 17, 2023
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.

None yet

2 participants