summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-05-23 13:40:57 -0300
committerRenato Botelho <renato@netgate.com>2017-05-23 13:40:57 -0300
commit5175d2d8aa564928ee334a600bda459c7d33a753 (patch)
tree35cb133eda699d6180e18e47dd9a4d39382da60f /src/usr
parent8c102a4beae38109060e379a03f5d793047851e3 (diff)
parent7fcccc8f09afd7f4a524ff598b43e15d678905eb (diff)
downloadpfsense-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.php4
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 {
OpenPOWER on IntegriCloud