Controller: rejecting double wildcards.
@@ -777,9 +777,14 @@ nxt_conf_vldt_match_pattern(nxt_conf_validation_t *vldt,
case sw_side:
if (i == last) {
+ if (last - first != 1) {
break;
}
+ return nxt_conf_vldt_error(vldt, "The \"match\" pattern must "
+ "not contain double \"*\" markers.");
+ }
+
/* Fall through. */
case sw_middle:
