summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-01 22:46:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-01 22:46:36 +0000
commit0cd7ed19b74520114d54058b840e4814007f714e (patch)
tree4e87839712d2d6aee85e5bd22e4c68a25be714ad /usr/local/www/firewall_aliases_edit.php
parentd7c46ccc62e982716d3ce534bd116488ab9170d4 (diff)
downloadpfsense-0cd7ed19b74520114d54058b840e4814007f714e.zip
pfsense-0cd7ed19b74520114d54058b840e4814007f714e.tar.gz
Do not allow aliases of the name LAN or WAN
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 56a0957..588bcde 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -80,6 +80,11 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
+ if(strtolower($_POST['name']) == "lan")
+ $input_errors[] = "Aliases may not be named LAN.";
+ if(strtolower($_POST['name']) == "wan")
+ $input_errors[] = "Aliases may not be named WAN.";
+
$x = is_validaliasname($_POST['name']);
if (!isset($x)) {
$input_errors[] = "Reserved word used for alias name.";
OpenPOWER on IntegriCloud