X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgi.c;fp=cgi.c;h=e03084e06190759890f808ceb374f565a7f0d194;hp=94f6875f4f448eee6f7204833dfa360039de7ff5;hb=373171c5f8ab7bfd36ec555e9fa63403f553cdfa;hpb=8e81a77608af00949306550c4b2c43747d954ddf diff --git a/cgi.c b/cgi.c index 94f6875f..e03084e0 100644 --- a/cgi.c +++ b/cgi.c @@ -457,7 +457,7 @@ static int referrer_is_safe(const struct client_state *csp) log_error(LOG_LEVEL_ERROR, "Denying access to %s. No referrer found.", csp->http->url); } - else if ((0 == strncmp(referrer, CGI_PREFIX, sizeof(CGI_PREFIX)-1)) + else if ((0 == strncmp(referrer, CGI_PREFIX_HTTP, sizeof(CGI_PREFIX_HTTP)-1)) #ifdef FEATURE_HTTPS_INSPECTION || (0 == strncmp(referrer, CGI_PREFIX_HTTPS, sizeof(CGI_PREFIX_HTTPS)-1)) || (0 == strncmp(referrer, alt_prefix_https, strlen(alt_prefix_https)))