Skip to content

Improve SimplePie redirects (POST to GET, remove authentication cross-origin)#78

Open
Inverle wants to merge 4 commits into
FreshRSS:freshrssfrom
Inverle:improve-sp-redirects
Open

Improve SimplePie redirects (POST to GET, remove authentication cross-origin)#78
Inverle wants to merge 4 commits into
FreshRSS:freshrssfrom
Inverle:improve-sp-redirects

Conversation

@Inverle
Copy link
Copy Markdown
Member

@Inverle Inverle commented May 30, 2026

Comment thread src/File.php
unset($url_parts);
$sameOriginRedirect =
($url_parts_from['scheme'] ?? '') === ($url_parts_to['scheme'] ?? '') &&
($url_parts_from['host'] ?? '') === ($url_parts_to['host'] ?? '') &&
Copy link
Copy Markdown
Member

@Alkarex Alkarex May 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think parse_url() normalises the casing

Copy link
Copy Markdown
Member Author

@Inverle Inverle May 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, good catch.
edit: fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants