Skip to content

newsdownloader: fix url path separator encoding bug#14975

Merged
Frenzie merged 1 commit into
koreader:masterfrom
MrToph:feature/newsdownloader_url_normalization
Feb 14, 2026
Merged

newsdownloader: fix url path separator encoding bug#14975
Frenzie merged 1 commit into
koreader:masterfrom
MrToph:feature/newsdownloader_url_normalization

Conversation

@MrToph

@MrToph MrToph commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

Bug

The url encoding that was implemented in #14870 encoded / as %2F. This leads to broken processing of feeds and articles that contain a sub path like https://github.com/koreader/koreader/releases.atom -> https://github.com%2Fkoreader%2Fkoreader%2Freleases.atom.

Fix

Preserve path separators and existing percent-encoded octets during path normalization in NewsDownloader, while still encoding invalid path characters (e.g. spaces).

Tests: added regression tests in newsdownloader_url_normalization_spec.lua that can be run on future changes to the url normalization.


This change is Reviewable

@Frenzie

Frenzie commented Feb 14, 2026

Copy link
Copy Markdown
Member

Also with reference to #14718

@Frenzie Frenzie added this to the 2026.02 milestone Feb 14, 2026
@Frenzie Frenzie added the Plugin label Feb 14, 2026
@Frenzie Frenzie merged commit 82115da into koreader:master Feb 14, 2026
3 of 4 checks passed
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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.

2 participants