summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-10-01 17:08:25 +0000
committerErmal <eri@pfsense.org>2010-10-01 17:08:25 +0000
commit23fafd1482d7ece0614bc467a304437b516d997a (patch)
treeb1d97d5803d844cdb1f9b3c1a4b64447c315cbe1 /usr
parentc568e6828107ee211bda109f3dee509b134b71b9 (diff)
downloadpfsense-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')
-rwxr-xr-xusr/local/www/system_gateways_edit.php2
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'] <> "") {
OpenPOWER on IntegriCloud