Repository navigation
SimplePie: Avoid requesting local files using HTTP\Client - #993
Merged
Merged
Conversation
This was referenced Oct 27, 2026
jtojnar
force-pushed
the
wip/jtojnar/local-req
branch
from
November 2, 2026 00:32
15fc743 to
fada5c7
Compare
In preparation for removal of local file support from HTTP clients, let’s add a separate `readLocalFile` helper method for fetching local files and use that instead of `HTTP\Client` instance. This will only be used for the initial fetch, which should be fine, as local files do not support redirects. The helper method was taken from `Psr18Client`. It was enhanced with an extra comment explaining the `try`–`catch`, and trimming taken from `File`.
jtojnar
force-pushed
the
wip/jtojnar/local-req
branch
from
November 2, 2026 21:58
fada5c7 to
afb0b19
Compare
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.
In preparation for removal of local file support from HTTP clients,
let’s add a separate
readLocalFilehelper method for fetching local filesand use that instead of
HTTP\Clientinstance.This will only be used for the initial fetch, which should be fine,
as local files do not support redirects.
The helper method was taken from
Psr18Client.It was enhanced with an extra comment explaining the
try–catch,and trimming taken from
File.Stack created with GitHub Stacks CLI • Give Feedback 💬