From f1ca57d4ee5ad84c2e88e65215c249548341862f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 18 Oct 2014 11:30:04 +0000 Subject: [PATCH] server_content_encoding(): Check for enabled content filters properly Previously external filters and gif deanimation weren't considered. CID 66374. --- parsers.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. " -- 2.39.2