summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-06 18:50:55 +0000
committerErmal <eri@pfsense.org>2011-07-06 18:52:47 +0000
commit5ffa33896f3e6173a6c7d2025487b0f85d9b73af (patch)
tree4a891b64f1d1f22668f02556adeedd0f9b0c2fee /usr/local/www/firewall_aliases_edit.php
parentb34b2b7da2b525389e9d42a7474d892fd77565fa (diff)
downloadpfsense-5ffa33896f3e6173a6c7d2025487b0f85d9b73af.zip
pfsense-5ffa33896f3e6173a6c7d2025487b0f85d9b73af.tar.gz
Feature #1603. Correct nested urltable alias code to be more fullproof to errors and does not break the ruleset on large lists of urltables. Though this needs a revisit to work properly since it breaks urltable alias property of reloading contents.
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 9d0f120..ee2fa9a 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -254,7 +254,7 @@ if ($_POST) {
if (!alias_same_type($_POST["address{$x}"], $_POST['type']))
// But alias type network can include alias type urltable. Feature#1603.
if (!($_POST['type'] == 'network' &&
- get_alias_type($_POST["address{$x}"]) == 'urltable'))
+ alias_get_type($_POST["address{$x}"]) == 'urltable'))
$wrongaliases .= " " . $_POST["address{$x}"];
} else if ($_POST['type'] == "port") {
if (!is_port($_POST["address{$x}"]))
OpenPOWER on IntegriCloud