]> granicus.if.org Git - apache/commitdiff
CharsetOptions NoImplicitAdd wasn't referenced during insert_filter callback.
authorEric Covener <covener@apache.org>
Sun, 25 Oct 2009 22:06:18 +0000 (22:06 +0000)
committerEric Covener <covener@apache.org>
Sun, 25 Oct 2009 22:06:18 +0000 (22:06 +0000)
Doc: Correct defaults, charset_lite inserts itself by as soon as you tell it about
input and output character sets.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@829664 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/manual/mod/mod_charset_lite.html.en
docs/manual/mod/mod_charset_lite.xml
modules/filters/mod_charset_lite.c

diff --git a/CHANGES b/CHANGES
index 17da6758b4ef0a0274c4aab71bec5d9d2a0d30d6..a01dfd862cac7cf5c5b6d9cb7a213ac3ae4f0ee2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,9 @@ Changes with Apache 2.3.3
      mod_proxy_ftp: NULL pointer dereference on error paths.
      [Stefan Fritsch <sf fritsch.de>, Joe Orton]
 
+  *) mod_charset_lite: Honor 'CharsetOptions NoImplicitAdd'.
+     [Eric Covener]
+
   *) mod_ssl: Add support for OCSP Stapling.  PR 43822.  
      [Dr Stephen Henson <shenson oss-institute.org>]
 
index 3c093d8587c3ac09183a16c7116c9927b417f954..a6cc7256723b7ba6d260b0d595663d7e3b9ae773 100644 (file)
 <table class="directive">
 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Configures charset translation behavior</td></tr>
 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>CharsetOptions <var>option</var> [<var>option</var>] ...</code></td></tr>
-<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CharsetOptions DebugLevel=0 NoImplicitAdd</code></td></tr>
+<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>CharsetOptions DebugLevel=0 ImplicitAdd</code></td></tr>
 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
 <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>FileInfo</td></tr>
 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
index eea7ab9d7b115fb4f57e9604a15dd0d1ef16456f..9e86510546cfb04d7a267ab189021b1b65bf9cc9 100644 (file)
 <name>CharsetOptions</name>
 <description>Configures charset translation behavior</description>
 <syntax>CharsetOptions <var>option</var> [<var>option</var>] ...</syntax>
-<default>CharsetOptions DebugLevel=0 NoImplicitAdd</default>
+<default>CharsetOptions DebugLevel=0 ImplicitAdd</default>
 <contextlist><context>server config</context>
 <context>virtual host</context><context>directory</context>
 <context>.htaccess</context>
index 428d8e30ebfc1bd0d5dc5cbe30d2527e47e6a867..ccf1074a9d5863ec9a74b9eb067231c9e250bc2b 100644 (file)
@@ -337,6 +337,15 @@ static void xlate_insert_filter(request_rec *r)
     charset_dir_t *dc = ap_get_module_config(r->per_dir_config,
                                              &charset_lite_module);
 
+    if (dc && (dc->implicit_add == IA_NOIMPADD)) { 
+        if (dc->debug >= DBGLVL_GORY) {
+            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
+                          "xlate output filter not added implicitly because "
+                          "CharsetOptions included 'NoImplicitAdd'");
+        }
+        return;
+    }
+
     if (reqinfo) {
         if (reqinfo->output_ctx && !configured_on_output(r, XLATEOUT_FILTER_NAME)) {
             ap_add_output_filter(XLATEOUT_FILTER_NAME, reqinfo->output_ctx, r,