diff options
author | Ermal <eri@pfsense.org> | 2010-10-01 17:08:25 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-01 17:08:25 +0000 |
commit | 23fafd1482d7ece0614bc467a304437b516d997a (patch) | |
tree | b1d97d5803d844cdb1f9b3c1a4b64447c315cbe1 /usr/local/www/system_gateways_edit.php | |
parent | c568e6828107ee211bda109f3dee509b134b71b9 (diff) | |
download | pfsense-23fafd1482d7ece0614bc467a304437b516d997a.zip pfsense-23fafd1482d7ece0614bc467a304437b516d997a.tar.gz |
Do not allow a gateway to be renamed. Possibly a better solution is to rename the gateway in all pointed places!
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 08f04e9..d1fcd30 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -129,6 +129,8 @@ if ($_POST) { /* check for overlaps */ foreach ($a_gateways as $gateway) { if (isset($id) && ($a_gateways[$id]) && ($a_gateways[$id] === $gateway)) { + if ($gateway['name'] != $_POST['name']) + $input_errors[] = gettext("Changing name on a gateway is not allowed because it can leave stale gateways around."); continue; } if($_POST['name'] <> "") { |