From: Fabian Keil Date: Mon, 8 Jun 2009 16:48:09 +0000 (+0000) Subject: Here's a fresh idea, why don't we respect taboos unless we're asked not to? X-Git-Tag: v_3_0_13~40 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=2eba31cc29bb3c30c58571796a787ddec63c818e;p=privoxy.git Here's a fresh idea, why don't we respect taboos unless we're asked not to? --- diff --git a/filters.c b/filters.c index 5ef0ff1d..0aae43f7 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.120 2009/04/17 11:45:19 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.121 2009/05/16 13:27:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -1769,6 +1769,12 @@ filter_function_ptr get_filter_function(struct client_state *csp) { filter_function_ptr filter_function = NULL; + if ((csp->content_type & CT_TABOO) + && !(csp->action->flags & ACTION_FORCE_TEXT_MODE)) + { + return NULL; + } + /* * Are we enabling text mode by force? */