[Pkg-owncloud-commits] [owncloud] 26/75: prevent error involving webdav workaround
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:08:33 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.
commit 7426f3f64118c9ec9867f1cc293b856a83ea92bf
Author: Robin Appelman <icewind1991 at gmail.com>
Date: Thu Oct 13 21:55:02 2011 +0200
prevent error involving webdav workaround
---
lib/base.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/base.php b/lib/base.php
index 57a3ae8..ade4d88 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list