summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_opt.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-17 21:29:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-17 21:29:16 +0000
commite47c266d49cc1f77d6ab06904e500f1d85688ace (patch)
tree82bd3baf80d704993c381b562f268d65a9140a9c /usr/local/www/interfaces_opt.php
parent593aa0ad63c6b596ab048902d4a6ecd99b5ccc23 (diff)
downloadpfsense-e47c266d49cc1f77d6ab06904e500f1d85688ace.zip
pfsense-e47c266d49cc1f77d6ab06904e500f1d85688ace.tar.gz
Ticket #1711 fixes
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-xusr/local/www/interfaces_opt.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index f40d7c5..d47664c 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -55,6 +55,10 @@ $a_gateways = &$config['gateways']['gateway_item'];
$optcfg = &$config['interfaces']['opt' . $index];
$optcfg['descr'] = remove_bad_chars($optcfg['descr']);
+foreach($config['aliases']['alias'] as $alias)
+ if($alias['name'] == $optcfg['descr'])
+ $input_errors[] = gettext("Sorry, an alias with the name {$optcfg['descr']} already exists.");
+
$pconfig['descr'] = $optcfg['descr'];
$pconfig['bridge'] = $optcfg['bridge'];
OpenPOWER on IntegriCloud