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

Backport recent fixes #313

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Backport recent fixes #313

merged 2 commits into from
Mar 7, 2023

Conversation

jtojnar
Copy link
Collaborator

@jtojnar jtojnar commented Mar 7, 2023

  • ContentExtractor: clear image property on reset
  • Graby::convert2Utf8: Allow spaces around HTML attributes

jtojnar added 2 commits March 7, 2023 14:50
The property was introduced in j0k3r@b5d8ad4 without reset method being made aware of it.
As a result, Graby might have returned an image from a previous item, when the Graby instance is re-used (like Wallabag does).
Ideally, we would create a fresh ContentExtractor for each URL to preempt issues like this.

(cherry picked from commit ac2b69a)
HTML attributes can contain a spaces around the equal sign:
https://html.spec.whatwg.org/multipage/syntax.html#attributes-2

Fixes: j0k3r#302
(cherry picked from commit 037810a)
@j0k3r j0k3r merged commit a8524b4 into j0k3r:2.x Mar 7, 2023
@jtojnar jtojnar deleted the backports branch March 7, 2023 14:11
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