summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_groups_edit.php
diff options
context:
space:
mode:
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 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'])) {
OpenPOWER on IntegriCloud