aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-13 21:55:02 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-13 21:55:02 +0200
commitdb2fb38746bb9d89b402c3a768a247945d813989 (patch)
treea8d5eae40b59d9b7fffdc8aa4fb99b8a6dbe60a3 /lib/base.php
parentf1fd374a6f078031e231c89c9fb8ca4b33feba20 (diff)
downloadnextcloud-server-db2fb38746bb9d89b402c3a768a247945d813989.tar.gz
nextcloud-server-db2fb38746bb9d89b402c3a768a247945d813989.zip
prevent error involving webdav workaround
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 57a3ae8669b..ade4d889631 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -82,7 +82,7 @@ class OC{
ini_set('arg_separator.output','&amp;');
//set http auth headers for apache+php-cgi work around
- if (preg_match('/Basic\s+(.*)$/i', $_SERVER['HTTP_AUTHORIZATION'], $matches))
+ if (isset($_SERVER['HTTP_AUTHORIZATION']) && preg_match('/Basic\s+(.*)$/i', $_SERVER['HTTP_AUTHORIZATION'], $matches))
{
list($name, $password) = explode(':', base64_decode($matches[1]));
$_SERVER['PHP_AUTH_USER'] = strip_tags($name);