diff options
author | Renato Botelho <renato@netgate.com> | 2017-01-31 13:29:19 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-31 13:29:19 -0200 |
commit | 75e181961370b788ef7b3f92ea156c9b1e1f4e46 (patch) | |
tree | 7421f3dadb4f970d26c710cfa925a3f6e247e413 /src/usr | |
parent | e4976ba0e40815b6e7ecad1cac6f424b2f4a637d (diff) | |
download | pfsense-75e181961370b788ef7b3f92ea156c9b1e1f4e46.zip pfsense-75e181961370b788ef7b3f92ea156c9b1e1f4e46.tar.gz |
Fix #7173 Interface Group Name cannot contain dash
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/interfaces_groups_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/interfaces_groups_edit.php b/src/usr/local/www/interfaces_groups_edit.php index b7ae1df..1394c69 100644 --- a/src/usr/local/www/interfaces_groups_edit.php +++ b/src/usr/local/www/interfaces_groups_edit.php @@ -109,8 +109,8 @@ if ($_POST) { $input_errors[] = gettext("Group name cannot have more than 16 characters."); } - if (preg_match("/([^a-zA-Z0-9-_])+/", $_POST['ifname'])) { - $input_errors[] = gettext("Only letters (A-Z), digits (0-9), '-' and '_' are allowed as the group name."); + if (preg_match("/([^a-zA-Z0-9_])+/", $_POST['ifname'])) { + $input_errors[] = gettext("Only letters (A-Z), digits (0-9) and '_' are allowed as the group name."); } if (preg_match("/[0-9]$/", $_POST['ifname'])) { |