From b835c2dd77a09ea46b5d6abd8d2271332bf52367 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 31 Jan 2017 20:59:54 +0545 Subject: Fix #7173 Interface Group Name cannot contain dash --- src/usr/local/www/interfaces_groups_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/interfaces_groups_edit.php') diff --git a/src/usr/local/www/interfaces_groups_edit.php b/src/usr/local/www/interfaces_groups_edit.php index 2bb1842..fcf9b3d 100644 --- a/src/usr/local/www/interfaces_groups_edit.php +++ b/src/usr/local/www/interfaces_groups_edit.php @@ -55,7 +55,7 @@ if (isset($id) && $a_ifgroups[$id]) { $interface_list = get_configured_interface_with_descr(); $interface_list_disabled = get_configured_interface_with_descr(false, true); -$ifname_allowed_chars_text = gettext("Only letters (A-Z), digits (0-9), '-' and '_' are allowed."); +$ifname_allowed_chars_text = gettext("Only letters (A-Z), digits (0-9) and '_' are allowed."); $ifname_no_digit_text = gettext("The group name cannot end with a digit."); @@ -81,7 +81,7 @@ if ($_POST) { $input_errors[] = gettext("Group name cannot have more than 16 characters."); } - if (preg_match("/([^a-zA-Z0-9-_])+/", $_POST['ifname'])) { + if (preg_match("/([^a-zA-Z0-9_])+/", $_POST['ifname'])) { $input_errors[] = $ifname_allowed_chars_text . " " . gettext("Please choose another group name."); } -- cgit v1.1