From 0ea47f72cbcdfe8233ebb31c267d001f8bf1c30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 23 Sep 2014 11:17:16 +0000 Subject: [PATCH] =?UTF-8?q?Fehler=20behoben=20wenn=20User=20beim=20Login?= =?UTF-8?q?=20Leerzeichen=20zum=20Usernamen=20hinzuf=C3=BCgen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/auth_mixed.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/auth_mixed.class.php b/include/auth_mixed.class.php index eb0232510..d6b861b0d 100644 --- a/include/auth_mixed.class.php +++ b/include/auth_mixed.class.php @@ -67,7 +67,7 @@ class authentication extends auth else { if(isset($_SESSION['user'])) - return mb_strtolower($_SESSION['user']); + return mb_strtolower(trim($_SESSION['user'])); else return $this->RequireLogin(); } @@ -149,7 +149,7 @@ class authentication extends auth } else { - return mb_strtolower($_SERVER['PHP_AUTH_USER']); + return mb_strtolower(trim($_SERVER['PHP_AUTH_USER'])); } }