]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: fixes double-encode configuration keywords
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 17 May 2019 11:08:26 +0000 (13:08 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 28 May 2019 08:57:04 +0000 (10:57 +0200)
src/app-layer-htp.c

index 6caca69cb1d2250b69dd4be4b09d49c6ca6d759d..564cfca38d9054ccee855c3b5563988556e54c18 100644 (file)
@@ -2480,13 +2480,13 @@ static void HTPConfigParseParameters(HTPCfgRec *cfg_prec, ConfNode *s,
                 exit(EXIT_FAILURE);
             }
 
-        } else if (strcasecmp("double-decode-path", p->name) == 0) {
+        } else if (strcasecmp("double-decode-query", p->name) == 0) {
             if (ConfValIsTrue(p->val)) {
                 htp_config_register_request_line(cfg_prec->cfg,
                                                  HTPCallbackDoubleDecodeQuery);
             }
 
-        } else if (strcasecmp("double-decode-query", p->name) == 0) {
+        } else if (strcasecmp("double-decode-path", p->name) == 0) {
             if (ConfValIsTrue(p->val)) {
                 htp_config_register_request_line(cfg_prec->cfg,
                                                  HTPCallbackDoubleDecodePath);