X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=parsers.c;h=185db7d6eb57a7f8165ba01d0c42bb2803efa323;hb=e18a6a44d67868da0a314cc07a0f6f81d19c7afc;hp=d2ef046a0205c1cfb912a5b566ad8bea3dc725f8;hpb=d718332b42f884d9c3c2fd0cfa9b83f4973c6971;p=privoxy.git 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. */