Skip to content
Snippets Groups Projects
Commit cba12e00 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Added missing HTTP prefix to the $_SERVER variable

parent 3d42e402
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,7 @@ class OC_API {
// reuse existing login
$loggedIn = OC_User::isLoggedIn();
$ocsApiRequest = isset($_SERVER['OCS_APIREQUEST']) ? $_SERVER['OCS_APIREQUEST'] === 'true' : false;
$ocsApiRequest = isset($_SERVER['HTTP_OCS_APIREQUEST']) ? $_SERVER['HTTP_OCS_APIREQUEST'] === 'true' : false;
if ($loggedIn === true && $ocsApiRequest) {
return OC_User::getUser();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment