Skip to content

Commit

Permalink
Merge pull request #3452 from phil-davis/ifgroup-name
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Jan 31, 2017
2 parents 581e88d + b835c2d commit 1c505f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usr/local/www/interfaces_groups_edit.php
Expand Up @@ -55,7 +55,7 @@

$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.");


Expand All @@ -81,7 +81,7 @@
$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.");
}

Expand Down

0 comments on commit 1c505f1

Please sign in to comment.