From 2f413136e941e96fd74118eb2d4b7238ab3c6b91 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Mon, 10 May 2021 23:21:20 +0200 Subject: [PATCH] BUG/MINOR: http_act: Fix normalizer names in error messages These places were forgotten when the normalizers were renamed. Bug introduced in 5be6ab269e5606aef954f39d6717b024f97b3789, which is 2.4. No backport needed. --- src/http_act.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_act.c b/src/http_act.c index b8413f331..96ac8f87b 100644 --- a/src/http_act.c +++ b/src/http_act.c @@ -401,7 +401,7 @@ static enum act_parse_ret parse_http_normalize_uri(const char **args, int *orig_ rule->action = ACT_NORMALIZE_URI_PATH_STRIP_DOTDOT; } else if (strcmp(args[cur_arg], "if") != 0 && strcmp(args[cur_arg], "unless") != 0) { - memprintf(err, "unknown argument '%s' for 'dotdot' normalizer", args[cur_arg]); + memprintf(err, "unknown argument '%s' for 'path-strip-dotdot' normalizer", args[cur_arg]); return ACT_RET_PRS_ERR; } } @@ -421,7 +421,7 @@ static enum act_parse_ret parse_http_normalize_uri(const char **args, int *orig_ rule->action = ACT_NORMALIZE_URI_PERCENT_TO_UPPERCASE; } else if (strcmp(args[cur_arg], "if") != 0 && strcmp(args[cur_arg], "unless") != 0) { - memprintf(err, "unknown argument '%s' for 'percent-upper' normalizer", args[cur_arg]); + memprintf(err, "unknown argument '%s' for 'percent-to-uppercase' normalizer", args[cur_arg]); return ACT_RET_PRS_ERR; } }