summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-05-24 13:39:09 -0700
committerNOYB <Al_Stu@Frontier.com>2016-05-24 19:06:03 -0700
commit3b07f4feaf35e70700082240ef03966f74f5df97 (patch)
tree57dea341b08444a11c7d822b90907bb90a98c91e /src/usr
parente8c09a23cbb56fa234c2e77a4a0957c61366a5e3 (diff)
downloadpfsense-3b07f4feaf35e70700082240ef03966f74f5df97.zip
pfsense-3b07f4feaf35e70700082240ef03966f74f5df97.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.
Diffstat (limited to 'src/usr')
-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