[Privoxy-commits] [privoxy] 01/48: Let the hide-referrer code tolerate Referer headers with https:// URLs
User Git
git at git.privoxy.org
Thu Dec 17 14:17:37 UTC 2020
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 7a5f24ec91471702404b46c94c5b5556e0cc502d
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Mon Dec 14 12:14:31 2020 +0100
Let the hide-referrer code tolerate Referer headers with https:// URLs
Previously they would always be treated like a changed host.
---
parsers.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/parsers.c b/parsers.c
index d2ef046a..185db7d6 100644
--- a/parsers.c
+++ b/parsers.c
@@ -4852,6 +4852,10 @@ static jb_err handle_conditional_hide_referrer_parameter(char **header,
referer[hostlength+17] = '\0';
}
referer_url = strstr(referer, "http://");
+ if (NULL == referer_url)
+ {
+ referer_url = strstr(referer, "https://");
+ }
if ((NULL == referer_url) || (NULL == strstr(referer_url, host)))
{
/* Host has changed, Referer is invalid or a https URL. */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list