summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorStefan Seidel <android@stefanseidel.info>2012-11-09 13:30:07 +0100
committerStefan Seidel <android@stefanseidel.info>2012-11-09 13:30:07 +0100
commit8f669880bc86c71388b20471c3b96bd86ae14fa7 (patch)
treef29ce468bc9d583daf0e772993eab0f12fca1e60 /lib/base.php
parentc0538636440b7293dd074ff4867bd950d426cea3 (diff)
downloadnextcloud-server-8f669880bc86c71388b20471c3b96bd86ae14fa7.tar.gz
nextcloud-server-8f669880bc86c71388b20471c3b96bd86ae14fa7.zip
Fix WebDAV (and Android Client) not being able to authorize on Debian Squeeze + mod_fcgid installs.
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index d4eeac82daa..bed50c904c7 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -356,6 +356,10 @@ class OC{
//try to set the session lifetime to 60min
@ini_set('gc_maxlifetime', '3600');
+ //copy http auth headers for apache+php-fcgid work around
+ if (isset($_SERVER['HTTP_XAUTHORIZATION']) && !isset($_SERVER['HTTP_AUTHORIZATION'])) {
+ $_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['HTTP_XAUTHORIZATION'];
+ }
//set http auth headers for apache+php-cgi work around
if (isset($_SERVER['HTTP_AUTHORIZATION']) && preg_match('/Basic\s+(.*)$/i', $_SERVER['HTTP_AUTHORIZATION'], $matches)) {