summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-06-27 14:30:14 +0930
committerChris Buechler <cmb@pfsense.org>2016-06-27 14:16:30 -0500
commit71d3c2f7523833f8cfd623cfe2a8c5e8b205126a (patch)
tree9e97e422de2a34f8d7adcec3618642151edd9366 /src/usr/local/www/diag_dns.php
parent7943b6a7ede151dd5aeac7c3718c03fb229e120a (diff)
downloadpfsense-71d3c2f7523833f8cfd623cfe2a8c5e8b205126a.zip
pfsense-71d3c2f7523833f8cfd623cfe2a8c5e8b205126a.tar.gz
Always use require_once
The usage of require() and require_once() throughout the system is inconsistent, and "bugs" come up now and then when the order of "requires" is a bit different and some require() happens after the include file is already included/required. It seems to me that there is no harm at all in always using require_once().
Diffstat (limited to 'src/usr/local/www/diag_dns.php')
-rwxr-xr-xsrc/usr/local/www/diag_dns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php
index 18cc1bf..2df22c8 100755
--- a/src/usr/local/www/diag_dns.php
+++ b/src/usr/local/www/diag_dns.php
@@ -61,7 +61,7 @@
##|-PRIV
$pgtitle = array(gettext("Diagnostics"), gettext("DNS Lookup"));
-require("guiconfig.inc");
+require_once("guiconfig.inc");
$host = trim($_REQUEST['host'], " \t\n\r\0\x0B[];\"'");
$host_esc = escapeshellarg($host);
OpenPOWER on IntegriCloud