Skip to content

Remove HTTP credentials in HTTP Referer#681

Merged
mblaney merged 1 commit intosimplepie:masterfrom
FreshRSS:url_remove_credentials
Apr 23, 2021
Merged

Remove HTTP credentials in HTTP Referer#681
mblaney merged 1 commit intosimplepie:masterfrom
FreshRSS:url_remove_credentials

Conversation

@Alkarex
Copy link
Contributor

@Alkarex Alkarex commented Apr 17, 2021

The HTTP Referer might appear in various logs and should not contain HTTP credentials
https://user:password@example.net/

New function SimplePie_Misc::url_remove_credentials($url) to strip credentials from a URL, before such a use.

Piece of this downstream PR: FreshRSS/FreshRSS#815

(I use this function in several other circumstances, which will be the topic of distinct PRs)

The HTTP Referer might appear in various logs and should not contain HTTP credentials
`https://user:password@example.net/`

New function `SimplePie_Misc::url_remove_credentials($url)` to strip credentials from a URL, before such a use.

Piece of this downstream PR: FreshRSS/FreshRSS#815

(I use this function in several other circumpstances, which will be the topic of distinct PRs)
@mblaney mblaney merged commit ebba0a8 into simplepie:master Apr 23, 2021
@Alkarex Alkarex deleted the url_remove_credentials branch May 4, 2021 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants