summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-05-24 13:39:09 -0700
committerStephen Beaver <sbeaver@netgate.com>2016-05-25 08:29:57 -0400
commit288d095f642c227e24b63e057dfb0258ca8c824f (patch)
treef41cc664728c34d95d9a0c1c0a04ef7084368f0e /src/usr/local/www/firewall_aliases_edit.php
parentc32e3ab8183abe5667a339dab1eca26ca25f7a69 (diff)
downloadpfsense-288d095f642c227e24b63e057dfb0258ca8c824f.zip
pfsense-288d095f642c227e24b63e057dfb0258ca8c824f.tar.gz
Firewall / Aliases / Edit - New URL Table Alias Type
Need to pass alias type to process_alias_urltable() function when creating a new url table alias because it is not yet set/available from config. So the alias_get_type() function can't be successfully used yet. (cherry picked from commit 3b07f4feaf35e70700082240ef03966f74f5df97)
Diffstat (limited to 'src/usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xsrc/usr/local/www/firewall_aliases_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php
index f762fe8..ea60a73 100755
--- a/src/usr/local/www/firewall_aliases_edit.php
+++ b/src/usr/local/www/firewall_aliases_edit.php
@@ -206,6 +206,7 @@ if ($_POST) {
$address = array();
$final_address_details = array();
$alias['name'] = $_POST['name'];
+ $alias['type'] = $_POST['type'];
if (preg_match("/urltable/i", $_POST['type'])) {
$address = "";
@@ -219,7 +220,7 @@ if ($_POST) {
$alias['updatefreq'] = $_POST['address_subnet0'] ? $_POST['address_subnet0'] : 7;
if (!is_URL($alias['url']) || empty($alias['url'])) {
$input_errors[] = gettext("A valid URL must be provided.");
- } elseif (!process_alias_urltable($alias['name'], $alias['url'], 0, true, true)) {
+ } elseif (!process_alias_urltable($alias['name'], $alias['type'], $alias['url'], 0, true, true)) {
$input_errors[] = gettext("Unable to fetch usable data from URL") . " " . htmlspecialchars($alias['url']);
}
if ($_POST["detail0"] <> "") {
OpenPOWER on IntegriCloud