aboutsummaryrefslogtreecommitdiffstats
path: root/mod/cloud.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-06 11:55:42 -0800
committerfriendica <info@friendica.com>2015-01-06 11:55:42 -0800
commitc05586fbe716400e4540856887e6f6a8dbcd5077 (patch)
treeb21763a1da6c8938ade685697dd353521428ebd0 /mod/cloud.php
parent7ee55674212c2266cc630669ba703757a0120a26 (diff)
downloadvolse-hubzilla-c05586fbe716400e4540856887e6f6a8dbcd5077.tar.gz
volse-hubzilla-c05586fbe716400e4540856887e6f6a8dbcd5077.tar.bz2
volse-hubzilla-c05586fbe716400e4540856887e6f6a8dbcd5077.zip
begin the grand unification for 3.0. Start by splitting DAV into a web accessible component and a DAV accessible component so that we can eliminate the http-auth prompts for web-accessed resources.
Diffstat (limited to 'mod/cloud.php')
-rw-r--r--mod/cloud.php30
1 files changed, 3 insertions, 27 deletions
diff --git a/mod/cloud.php b/mod/cloud.php
index 27724f6b0..03676c599 100644
--- a/mod/cloud.php
+++ b/mod/cloud.php
@@ -3,7 +3,7 @@
* @file mod/cloud.php
* @brief Initialize RedMatrix's cloud (SabreDAV).
*
- * Module for accessing the DAV storage area.
+ * Module for accessing the DAV storage area from a web client.
*/
use Sabre\DAV;
@@ -12,25 +12,6 @@ use RedMatrix\RedDAV;
// composer autoloader for SabreDAV
require_once('vendor/autoload.php');
-// workaround for HTTP-auth in CGI mode
-if (x($_SERVER, 'REDIRECT_REMOTE_USER')) {
- $userpass = base64_decode(substr($_SERVER["REDIRECT_REMOTE_USER"], 6)) ;
- if(strlen($userpass)) {
- list($name, $password) = explode(':', $userpass);
- $_SERVER['PHP_AUTH_USER'] = $name;
- $_SERVER['PHP_AUTH_PW'] = $password;
- }
-}
-
-if (x($_SERVER, 'HTTP_AUTHORIZATION')) {
- $userpass = base64_decode(substr($_SERVER["HTTP_AUTHORIZATION"], 6)) ;
- if(strlen($userpass)) {
- list($name, $password) = explode(':', $userpass);
- $_SERVER['PHP_AUTH_USER'] = $name;
- $_SERVER['PHP_AUTH_PW'] = $password;
- }
-}
-
/**
* @brief Fires up the SabreDAV server.
*
@@ -126,13 +107,8 @@ function cloud_init(&$a) {
}
if ((! $auth->observer) && (! $isapublic_file) && (! $davguest)) {
- try {
- $auth->Authenticate($server, t('RedMatrix - Guests: Username: {your email address}, Password: +++'));
- }
- catch (Exception $e) {
- logger('mod_cloud: auth exception' . $e->getMessage());
- http_status_exit($e->getHTTPCode(), $e->getMessage());
- }
+ logger('mod_cloud: auth exception' . $e->getMessage());
+ http_status_exit($e->getHTTPCode(), $e->getMessage());
}
require_once('include/RedDAV/RedBrowser.php');