mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Added missing HTTP prefix to the $_SERVER variable
This commit is contained in:
parent
3d42e402c5
commit
cba12e009f
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue