diff options
author | Phil Davis <phil.davis@inf.org> | 2017-02-01 09:59:45 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-02-01 09:59:45 +0545 |
commit | c9d93b62b0cc559d1ed4326212b6385cae2eb398 (patch) | |
tree | 78f16ef7248615d6e06a16d31691f3695ba5c398 /src/usr/local/www/interfaces_groups_edit.php | |
parent | 070379bbc0cf84d82f52a0adfe2bdc6014695f7e (diff) | |
download | pfsense-c9d93b62b0cc559d1ed4326212b6385cae2eb398.zip pfsense-c9d93b62b0cc559d1ed4326212b6385cae2eb398.tar.gz |
Redmine #7173 Do not allow pkg_ for If, IfGroup, Alias
Diffstat (limited to 'src/usr/local/www/interfaces_groups_edit.php')
-rw-r--r-- | src/usr/local/www/interfaces_groups_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/interfaces_groups_edit.php b/src/usr/local/www/interfaces_groups_edit.php index fcf9b3d..9d3a62a 100644 --- a/src/usr/local/www/interfaces_groups_edit.php +++ b/src/usr/local/www/interfaces_groups_edit.php @@ -90,11 +90,11 @@ if ($_POST) { } /* - * Packages (e.g. tinc) creates interface groups, reserve this - * namespace pkg- for them + * Packages (e.g. tinc) create interface groups, reserve this + * namespace pkg_ for them */ - if (substr($_POST['ifname'], 0, 4) == 'pkg-') { - $input_errors[] = gettext("Group name cannot start with pkg-"); + if (substr($_POST['ifname'], 0, 4) == 'pkg_') { + $input_errors[] = gettext("Group name cannot start with pkg_"); } foreach ($interface_list_disabled as $gif => $gdescr) { |