]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
CharsetOptions NoImplicitAdd makes us fall through to the "unknown option" clause
authorEric Covener <covener@apache.org>
Sun, 25 Oct 2009 21:28:45 +0000 (21:28 +0000)
committerEric Covener <covener@apache.org>
Sun, 25 Oct 2009 21:28:45 +0000 (21:28 +0000)
due to breaking "else if", making NoImplicitAdd unconfigurable.

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

modules/filters/mod_charset_lite.c

index b5c462ec83c7b196bc75f6eb8b6ef7dc7476ce5f..428d8e30ebfc1bd0d5dc5cbe30d2527e47e6a867 100644 (file)
@@ -181,7 +181,7 @@ static const char *add_charset_options(cmd_parms *cmd, void *in_dc,
     else if (!strcasecmp(flag, "NoImplicitAdd")) {
         dc->implicit_add = IA_NOIMPADD;
     }
-    if (!strcasecmp(flag, "TranslateAllMimeTypes")) {
+    else if (!strcasecmp(flag, "TranslateAllMimeTypes")) {
         dc->force_xlate = FX_FORCE;
     }
     else if (!strcasecmp(flag, "NoTranslateAllMimeTypes")) {