Commit aed61f93 authored by skummer's avatar skummer

ZP-139 #comment force lowercase in authentication username #time 20m

git-svn-id: https://z-push.org/svn/z-push/trunk@1434 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 44578f78
......@@ -223,6 +223,7 @@ class Request {
// split username & domain if received as one
if (isset($_SERVER['PHP_AUTH_USER'])) {
list(self::$authUser, self::$authDomain) = Utils::SplitDomainUser($_SERVER['PHP_AUTH_USER']);
self::$authUser = strtolower(self::$authUser);
self::$authPassword = (isset($_SERVER['PHP_AUTH_PW']))?$_SERVER['PHP_AUTH_PW'] : "";
}
// authUser & authPassword are unfiltered!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment