From: Fabian Keil Date: Sat, 18 Oct 2014 11:30:04 +0000 (+0000) Subject: server_content_encoding(): Check for enabled content filters properly X-Git-Tag: v_3_0_22~45 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=f1ca57d4ee5ad84c2e88e65215c249548341862f server_content_encoding(): Check for enabled content filters properly Previously external filters and gif deanimation weren't considered. CID 66374. --- diff --git a/parsers.c b/parsers.c index 8b1a7a7a..219a6cf7 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.292 2014/07/25 11:57:17 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.293 2014/10/18 11:24:34 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -2321,8 +2321,7 @@ static jb_err server_content_encoding(struct client_state *csp, char **header) /* * Log a warning if the user expects the content to be filtered. */ - if ((csp->rlist != NULL) && - (!list_is_empty(csp->action->multi[ACTION_MULTI_FILTER]))) + if (content_filters_enabled(csp->action)) { log_error(LOG_LEVEL_INFO, "SDCH-compressed content detected, content filtering disabled. "