Skip to content

SimplePie fix base#4565

Merged
Alkarex merged 2 commits intoFreshRSS:edgefrom
Alkarex:simplepie-fix-base
Sep 5, 2022
Merged

SimplePie fix base#4565
Alkarex merged 2 commits intoFreshRSS:edgefrom
Alkarex:simplepie-fix-base

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Aug 30, 2022

#fix #4562
See <xml:base> example in https://datatracker.ietf.org/doc/html/rfc4287#section-1.1
First uses item <xml:base> if it exists, or the item own link, or the feed's base URL rules (feed URL, or Web site URL)

Only maybe for 1.20.0 if sufficient testing is provided, otherwise 1.21.0

#fix FreshRSS#4562
See `<xml:base>` example in https://datatracker.ietf.org/doc/html/rfc4287#section-1.1
First uses item `<xml:base>` if it exists, or the item own link, or the feed's base URL rules (feed URL, or Web site URL)
@Alkarex Alkarex added this to the 1.20.0 milestone Aug 30, 2022
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Aug 30, 2022
SimplePie was not using the best base link for an item content (instead, it was directly using the feed base).
See `<xml:base>` example in https://datatracker.ietf.org/doc/html/rfc4287#section-1.1
First uses item `<xml:base>` if it exists, or the item own link, or the feed's base URL rules (feed URL, or Web site URL)
Downstream issue FreshRSS/FreshRSS#4562
Downstream PR FreshRSS/FreshRSS#4565
@Alkarex
Copy link
Member Author

Alkarex commented Aug 30, 2022

Upstream PR: simplepie/simplepie#744

@Alkarex Alkarex linked an issue Sep 3, 2022 that may be closed by this pull request
@Alkarex
Copy link
Member Author

Alkarex commented Sep 5, 2022

Looks fine for me so far. Let's try

@Alkarex Alkarex merged commit 442019a into FreshRSS:edge Sep 5, 2022
@Alkarex Alkarex deleted the simplepie-fix-base branch September 5, 2022 07:15
mblaney pushed a commit to simplepie/simplepie that referenced this pull request Sep 22, 2022
* Fix item get_base
SimplePie was not using the best base link for an item content (instead, it was directly using the feed base).
See `<xml:base>` example in https://datatracker.ietf.org/doc/html/rfc4287#section-1.1
First uses item `<xml:base>` if it exists, or the item own link, or the feed's base URL rules (feed URL, or Web site URL)
Downstream issue FreshRSS/FreshRSS#4562
Downstream PR FreshRSS/FreshRSS#4565

* tests

* Same indenting as other tests
Maybe can help with strange CI bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Anchors wrongly computed Relative image source to content

1 participant