Skip to content
Snippets Groups Projects
Commit db2fb387 authored by Robin Appelman's avatar Robin Appelman
Browse files

prevent error involving webdav workaround

parent f1fd374a
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ class OC{
ini_set('arg_separator.output','&');
//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);
......
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