]> git.mxchange.org Git - friendica.git/blobdiff - src/Security/OAuth.php
Merge pull request #10969 from MrPetovan/task/remove-private-contacts
[friendica.git] / src / Security / OAuth.php
index 7210df8c2ede2e687668a5dd4829a8954fa81b1a..2f5dd396410bba4f1634b34ec5b7af415b71272d 100644 (file)
@@ -83,6 +83,11 @@ class OAuth
        {
                $authorization = $_SERVER['HTTP_AUTHORIZATION'] ?? '';
 
+               if (empty($authorization)) {
+                       // workaround for HTTP-auth in CGI mode
+                       $authorization = $_SERVER['REDIRECT_REMOTE_USER'] ?? '';
+               }
+
                if (substr($authorization, 0, 7) != 'Bearer ') {
                        return [];
                }