bugfix
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 31 Jan 2002 11:03:48 +0000 (11:03 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 31 Jan 2002 11:03:48 +0000 (11:03 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2311 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/administrator/auth.php

index aab2196..517d70e 100644 (file)
@@ -8,7 +8,7 @@ function adm_check_user() {
     
     if ( file_exists( '../plugins/administrator/admins' ) ) {
         $auths = file( '../plugins/administrator/admins' );
-        $auth = in_array( $username, $auths );
+        $auth = in_array( "$username\n", $auths );
     }else if ( $adm_id = fileowner('../config/config.php') ) {
         $adm = posix_getpwuid( $adm_id );
         if ( $username == $adm['name'] ) {