From 090f676483e78122f2c307377cfc27d866dabdfe Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 26 May 2002 20:00:35 +0000 Subject: [PATCH] remove stray whitespace, etc --- phpgwapi/inc/common_functions.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index afd6b39787..bb27b3cf5e 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -176,20 +176,20 @@ return True; } break; - case "isprint": + case 'isprint': $length = strlen($string); $position = 0; while ($length > $position) { $char = substr($string, $position, 1); - if ($char < ' ' || $char > '~') + if ($char < ' ' || $char > '~') { return False; } $position = $position + 1; } return True; - break; + break; case 'alpha': if (preg_match("/^[a-z]+$/i", $string)) { @@ -241,7 +241,7 @@ return True; } break; - case "password": + case 'password': $password_length = strlen($string); $password_numbers = Array('0','1','2','3','4','5','6','7','8','9'); $password_special_chars = Array(' ','~','`','!','@','#','$','%','^','&','*','(',')','_','+','-','=','{','}','|','[',']',"\\",':','"',';',"'",'<','>','?',',','.','/'); @@ -300,7 +300,7 @@ } } } - + if ($pass_verify_num == False) { $GLOBALS['phpgw_info']['flags']['msgbox_data']['Password requires at least one non-alpha character']=False;