From 06ae5de79126bf659924fc98a9bfeb7ffa1fc5e4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 1 Dec 2014 18:28:09 +0100 Subject: [PATCH] do not error out on basic auth --- lib/oauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2