diff options
author | Renato Botelho <renato@netgate.com> | 2017-05-23 13:40:57 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-05-23 13:40:57 -0300 |
commit | 5175d2d8aa564928ee334a600bda459c7d33a753 (patch) | |
tree | 35cb133eda699d6180e18e47dd9a4d39382da60f /src/usr | |
parent | 8c102a4beae38109060e379a03f5d793047851e3 (diff) | |
parent | 7fcccc8f09afd7f4a524ff598b43e15d678905eb (diff) | |
download | pfsense-5175d2d8aa564928ee334a600bda459c7d33a753.zip pfsense-5175d2d8aa564928ee334a600bda459c7d33a753.tar.gz |
Merge pull request #3735 from phil-davis/dns-lookup-add-alias
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/diag_dns.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index aa4bf0a..9b9318a 100644 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -84,7 +84,7 @@ function resolve_host_addresses($host) { return $resolved; } -if (isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) { +if (isAllowedPage('firewall_aliases_edit.php') && isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) { $resolved = gethostbyname($host); $type = "hostname"; if ($resolved) { @@ -249,7 +249,7 @@ $form->addGlobal(new Form_Button( 'fa-search' ))->addClass('btn-primary'); -if (!empty($resolved)) { +if (!empty($resolved) && isAllowedPage('firewall_aliases_edit.php')) { if ($alias_exists) { $button_text = gettext("Update alias"); } else { |