diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-10-30 21:07:19 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-10-30 21:07:19 +0100 |
commit | cba12e009fd11591763198665e5845cc54f395da (patch) | |
tree | cf31cddf9596752516a9c577d9da5aa730ae7b7f /lib | |
parent | 3d42e402c5f1956bc72ac5accc268f519d66c3e9 (diff) | |
download | nextcloud-server-cba12e009fd11591763198665e5845cc54f395da.tar.gz nextcloud-server-cba12e009fd11591763198665e5845cc54f395da.zip |
Added missing HTTP prefix to the $_SERVER variable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/api.php b/lib/private/api.php index 0576f3e3f93..7e69a6a77d2 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -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(); } |