From: Christian Weiske Date: Mon, 1 Dec 2014 17:28:09 +0000 (+0100) Subject: do not error out on basic auth X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/06ae5de79126bf659924fc98a9bfeb7ffa1fc5e4?ds=sidebyside do not error out on basic auth --- diff --git a/lib/oauth.php b/lib/oauth.php index 3cd695c..b7239ba 100644 --- a/lib/oauth.php +++ b/lib/oauth.php @@ -162,7 +162,7 @@ class OAuth //$_SERVER['REDIRECT_HTTP_AUTHORIZATION'] = $_SERVER['HTTP_AUTHORIZATION']; if (isset($_SERVER['HTTP_AUTHORIZATION']) - && $_SERVER['HTTP_AUTHORIZATION'] == '' + && strtolower(substr($_SERVER['HTTP_AUTHORIZATION'], 0, 6)) != 'oauth ' ) { //work around bug https://bugs.php.net/bug.php?id=68168 //#68168: HTTP Basic auth and empty auth header reported