server_content_encoding(): Check for enabled content filters properly
authorFabian Keil <fk@fabiankeil.de>
Sat, 18 Oct 2014 11:30:04 +0000 (11:30 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 18 Oct 2014 11:30:04 +0000 (11:30 +0000)
Previously external filters and gif deanimation weren't considered.

CID 66374.

parsers.c

index 8b1a7a7..219a6cf 100644 (file)
--- 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. "