diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-05-24 13:39:09 -0700 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-05-25 08:29:57 -0400 |
commit | 288d095f642c227e24b63e057dfb0258ca8c824f (patch) | |
tree | f41cc664728c34d95d9a0c1c0a04ef7084368f0e /src/usr/local/www/firewall_aliases_edit.php | |
parent | c32e3ab8183abe5667a339dab1eca26ca25f7a69 (diff) | |
download | pfsense-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-x | src/usr/local/www/firewall_aliases_edit.php | 3 |
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"] <> "") { |