From d87fc50b37aec1b27081ef482ae3aadb93ae71e3 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Wed, 2 May 2007 12:42:12 +0000 Subject: Do not allow - in aliases. This breaks port aliases. tables are fine with the - and the _. Ports only work with _. --- usr/local/www/firewall_aliases_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/firewall_aliases_edit.php') diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 7db0390..a83d0f8 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -109,7 +109,7 @@ if ($_POST) { $input_errors[] = "Reserved word used for alias name."; } else { if (is_validaliasname($_POST['name']) == false) - $input_errors[] = "The alias name may only consist of the characters a-z, A-Z, 0-9, -, _."; + $input_errors[] = "The alias name may only consist of the characters a-z, A-Z, 0-9, _."; } if ($_POST['type'] == "host") if (!is_ipaddr($_POST['address'])) { -- cgit v1.1