Here's a fresh idea, why don't we respect taboos unless we're asked not to?
authorFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2009 16:48:09 +0000 (16:48 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 8 Jun 2009 16:48:09 +0000 (16:48 +0000)
filters.c

index 5ef0ff1..0aae43f 100644 (file)
--- 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?
     */