Skip to content

[plugin] NewsDownloader: make <title> match less greedy#13070

Merged
Frenzie merged 4 commits into
koreader:masterfrom
Frenzie:newsdownloader-title-less-greedy
Jan 15, 2025
Merged

[plugin] NewsDownloader: make <title> match less greedy#13070
Frenzie merged 4 commits into
koreader:masterfrom
Frenzie:newsdownloader-title-less-greedy

Conversation

@Frenzie

@Frenzie Frenzie commented Jan 14, 2025

Copy link
Copy Markdown
Member

On most pages it works fine, but on pages with multiple </title> it can match very large amounts of text.

Valid examples include <svg> in the HTML, where <title> is used similar to title="" in HTML, but of course there could also simply be invalid pages.


This change is Reviewable

On most pages it works fine, but on pages with multiple </title> it can match very large amounts of text.

Valid examples include <svg> in the HTML, where <title> is used similar to title="" in HTML, but of course there could also simply be invalid pages.
@Frenzie Frenzie added the Plugin label Jan 14, 2025
@Frenzie Frenzie added this to the 2025.01 milestone Jan 14, 2025
@Frenzie Frenzie merged commit 8314838 into koreader:master Jan 15, 2025
@Frenzie Frenzie deleted the newsdownloader-title-less-greedy branch January 15, 2025 09:07
Commodore64user pushed a commit to Commodore64user/KOReader_fork that referenced this pull request Jan 27, 2025
On most pages it works fine, but on pages with multiple `</title>` it can match very large amounts of text.

Valid examples include `<svg>` in the HTML, where [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title) is used similar to `title=""` in HTML, but of course there could also simply be invalid pages.
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
On most pages it works fine, but on pages with multiple `</title>` it can match very large amounts of text.

Valid examples include `<svg>` in the HTML, where [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title) is used similar to `title=""` in HTML, but of course there could also simply be invalid pages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant