diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-04-12 17:44:55 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-04-12 17:44:55 +0300 |
commit | 5e1cf14565675ad1bbc983901a33ab6fe7e0c906 (patch) | |
tree | b3438b8071eb459efafd752d61c9cc16baf7063e | |
parent | f0cc14d394ddad4d9dfd98f7fe925605eed1fa3d (diff) | |
download | unit-5e1cf14565675ad1bbc983901a33ab6fe7e0c906.tar.gz unit-5e1cf14565675ad1bbc983901a33ab6fe7e0c906.tar.bz2 |
Controller: rejecting double wildcards.
-rw-r--r-- | src/nxt_conf_validation.c | 7 |
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. */ |