summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-14 14:59:32 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-14 14:59:32 -0500
commit7466951af7b3ec98fc6c683e427cbc77c876f99a (patch)
tree6a48cbab6a657077e26dbfbad57c08062d623474
parent2b1e35e6ff6c5b9090f706575f0add30590877b4 (diff)
downloadpfsense-7466951af7b3ec98fc6c683e427cbc77c876f99a.zip
pfsense-7466951af7b3ec98fc6c683e427cbc77c876f99a.tar.gz
Disallow blank passwords
-rw-r--r--etc/inc/auth.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 9f80965..387f17c 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -103,11 +103,11 @@ function htpasswd_backed_basic_auth() {
}
// Disallow blank usernames
- if (!isset($HTTP_SERVER_VARS['AUTH_USER']))
+ if (!$HTTP_SERVER_VARS['AUTH_USER'])
continue;
// Disallow blank passwords
- if(!isset($HTTP_SERVER_VARS['AUTH_PW']))
+ if(!$HTTP_SERVER_VARS['AUTH_PW'])
continue;
/* Check to see if user even exists */
OpenPOWER on IntegriCloud