summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2019-04-12 17:44:55 +0300
committerValentin Bartenev <vbart@nginx.com>2019-04-12 17:44:55 +0300
commit5e1cf14565675ad1bbc983901a33ab6fe7e0c906 (patch)
treeb3438b8071eb459efafd752d61c9cc16baf7063e /src
parentf0cc14d394ddad4d9dfd98f7fe925605eed1fa3d (diff)
downloadunit-5e1cf14565675ad1bbc983901a33ab6fe7e0c906.tar.gz
unit-5e1cf14565675ad1bbc983901a33ab6fe7e0c906.tar.bz2
Controller: rejecting double wildcards.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_conf_validation.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index e2e1b89e..aedcc605 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -777,7 +777,12 @@ nxt_conf_vldt_match_pattern(nxt_conf_validation_t *vldt,
case sw_side:
if (i == last) {
- break;
+ if (last - first != 1) {
+ break;
+ }
+
+ return nxt_conf_vldt_error(vldt, "The \"match\" pattern must "
+ "not contain double \"*\" markers.");
}
/* Fall through. */