From: Philippe Antoine Date: Fri, 17 May 2019 11:08:26 +0000 (+0200) Subject: http: fixes double-encode configuration keywords X-Git-Tag: suricata-5.0.0-rc1~457 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5879650bb7eb7fe531e1938682cd0ac419422ed;p=thirdparty%2Fsuricata.git http: fixes double-encode configuration keywords --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 6caca69cb1..564cfca38d 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -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);