From 999324414363f276eb886ab26c890356bd028e51 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Thu, 21 Jul 2022 14:43:03 -0700 Subject: [PATCH] Fix issues with tactical names --- files/www/cgi-bin/setup | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index a5de5fc8..b043a1fe 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -643,7 +643,14 @@ if parms.button_save then if nodetac:match("/") then node, tactical = nodetac:match("^%s*([%w-]+)%s*/%s*([%w-]*)%s*$") - if tactical == "" then + if not node then + err("invalid node/tactical name") + node = nodetac:match("^([^/%s]*)") + tactical = "" + if node == "" then + err("you must set the node name") + end + elseif tactical == "" then err("invalid node/tactical name") end else