From d2aa8cd682a6db5a4d081ea39ff430df8715e9a0 Mon Sep 17 00:00:00 2001 From: sullrich Date: Fri, 27 Nov 2009 19:39:47 -0500 Subject: [PATCH] Escape ' Ticket #143 --- etc/inc/auth.inc | 9 ++++----- usr/local/www/firewall_rules.php | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 0b955b32e2..a395a91821 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; } diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 902dd26e75..bcfa4356a9 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -414,7 +414,7 @@ echo "