From aaad0d05d1792e94617b75cc95729ba38c315657 Mon Sep 17 00:00:00 2001 From: Devops Date: Mon, 15 May 2017 01:19:58 +0100 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index c514e4d5..b3a1c5a6 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -660,8 +660,9 @@ EOF; if ($p['value'] and !$this->str_match($value,$p['value'])) continue; if ($p['section'] and !$this->str_match($_section,$p['section'])) continue; - if ($_section == 'PHP_VARIABLES' - and preg_match('/^(.?_SERVER\[.)?(.' . $this->hide_keys_exp . ')(.\])?$/', $name) + if ( + $_section == 'PHP_VARIABLES' + and preg_match('/^(._SERVER\[.)?(.' . $this->hide_keys_exp . ')(.\])?$/', $name) ) { $value = $this->hide_keys_value; } @@ -721,13 +722,13 @@ EOF; unset($_SERVER['REMOTE_USER']); #header('Content-type: text/html'); - if (empty($_REQUEST['realm'])) header('WWW-Authenticate: Basic'); - else header('WWW-Authenticate: Basic realm="'.$_REQUEST['realm'].'"'); + if (!empty($_REQUEST['realm'])) header('WWW-Authenticate: Basic realm="'.$_REQUEST['realm'].'"'); + else header('WWW-Authenticate: Basic'); - header('HTTP/1.1 401 Access Denied'); - header('HTTP/1.1 401 Unauthorized'); } + header('HTTP/1.1 401 Access Denied'); + header('HTTP/1.1 401 Unauthorized'); if (1) echo << document.addEventListener("DOMContentLoaded", function(event){ -- 2.47.3