You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2c5300f
Browse filesBrowse the repository at this point in the historyBrowse files
fix: resolve ../ and ./ relative links in feed item content
Add resolveRelativePathLinksInContent() private method to Node that
handles href/src attributes starting with ../ or ./. These paths are
normalized against the item's base directory using stack-based path
resolution, then replaced with absolute URLs.
Previously, Node::setHostInContent() only handled:
- /absolute/path hrefs
- #fragment hrefs
- word-starting relative hrefs (e.g. page.html)
Relative paths with dot segments (../path, ./path) were left unresolved,
breaking links in feeds like https://wiki.xxiivv.com/links/log.xml whose
<description> elements contain HTML with ../media/ and ../site/ hrefs.
Also add tests and a sample RSS fixture with relative ../ links.
0 commit comments