summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_groups_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-31 20:59:54 +0545
committerPhil Davis <phil.davis@inf.org>2017-01-31 20:59:54 +0545
commitb835c2dd77a09ea46b5d6abd8d2271332bf52367 (patch)
tree2255b9931ccc4f04ba35f8d6c75b55e3d0f3aa5f /src/usr/local/www/interfaces_groups_edit.php
parentac9759a2b3596a2910cca0cf14b4ccd7086a0e09 (diff)
downloadpfsense-b835c2dd77a09ea46b5d6abd8d2271332bf52367.zip
pfsense-b835c2dd77a09ea46b5d6abd8d2271332bf52367.tar.gz
Fix #7173 Interface Group Name cannot contain dash
Diffstat (limited to 'src/usr/local/www/interfaces_groups_edit.php')
-rw-r--r--src/usr/local/www/interfaces_groups_edit.php4
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 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.");
}
OpenPOWER on IntegriCloud