diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-27 19:39:47 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-27 19:40:06 -0500 |
commit | d2aa8cd682a6db5a4d081ea39ff430df8715e9a0 (patch) | |
tree | e02f54e391c3347163d55aedcfd2e18689968900 /etc/inc | |
parent | 55c613269b23e74bd67119d9f24d4305354d8dff (diff) | |
download | pfsense-d2aa8cd682a6db5a4d081ea39ff430df8715e9a0.zip pfsense-d2aa8cd682a6db5a4d081ea39ff430df8715e9a0.tar.gz |
Escape ' Ticket #143
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/auth.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 0b955b3..a395a91 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -849,11 +849,10 @@ function get_user_expiration_date($username) { function is_account_disabled($username) { global $config; - foreach($config['system']['user'] as $user) { - if(isset($user['disabled'])) { - return true; - } - } + foreach($config['system']['user'] as $user) + if($user == $username) + if(isset($user['disabled'])) + return true; return false; } |