Repository navigation
File,Psr18Client: Remove support for local files - #994
Merged
Merged
Conversation
jtojnar
force-pushed
the
wip/jtojnar/no-file-requests
branch
from
October 27, 2026 15:26
7ac953e to
aabdf5e
Compare
This was referenced Oct 27, 2026
Contributor
|
We could refer to set_raw_data() instead? |
Art4
reviewed
Oct 27, 2026
jtojnar
force-pushed
the
wip/jtojnar/no-file-requests
branch
from
October 29, 2026 09:47
aabdf5e to
715562c
Compare
Member
Author
I wanted to do that initially but then I decided that the initial fetch is probably fine and keeping that will lead to less potential BC breaks (see #993). But I can drop that as well, if you think it is better. |
jtojnar
force-pushed
the
wip/jtojnar/no-file-requests
branch
2 times, most recently
from
November 2, 2026 00:37
ce531e3 to
e1ae160
Compare
Member
Author
|
After consulting with @jgalea, I have decided to drop it from |
Art4
approved these changes
Nov 2, 2026
We are going to remove support for local files from `File`. Let’s obtain the contents ourselves and then populate a dummy `File` from the manually constructed response. It should be fine to use it for the legacy non-namespaced `LocatorTest` since `Locator`, not `File`, is the unit under test.
This can lead to information leaks when discovery/redirects are triggered. Partially fixes: https://www.github.com/simplepie/simplepie/issues/968 Fixes CVE-2026-111234
We are going to remove local paths as URLs.
This can lead to giving access to local files if a path is passed to `set_feed_url` instead of URL. It can be replaced by passing the contents of the file, obtained e.g. using `file_get_contents` to `SimplePie::set_raw_data()`. Mostly reverts 15fc743
jtojnar
force-pushed
the
wip/jtojnar/no-file-requests
branch
from
November 2, 2026 21:58
e1ae160 to
9a64876
Compare
Alkarex
added a commit
to FreshRSS/simplepie
that referenced
this pull request
Nov 13, 2026
Merge upstream Resolving conflicts with: * Require PHP 7.4 or newer simplepie#1006 * File,Psr18Client: Remove support for local files simplepie#994
Alkarex
added a commit
to FreshRSS/FreshRSS
that referenced
this pull request
Nov 14, 2026
In particular: * File,Psr18Client: Remove support for local files simplepie/simplepie#994 * Parser: ignore whitespace before the XML declaration simplepie/simplepie#1005 * Require PHP 7.4 or newer simplepie/simplepie#1006, simplepie/simplepie#992 * Parser: treat https Atom 1.0 namespace as Atom simplepie/simplepie#1010
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This can lead to information leaks when discovery/redirects are triggered.
Partially fixes: #968
Stack created with GitHub Stacks CLI • Give Feedback 💬