diff --git a/3rdparty/openid/phpmyid.php b/3rdparty/openid/phpmyid.php index 13fd31c47ca2..6240fecefd43 100644 --- a/3rdparty/openid/phpmyid.php +++ b/3rdparty/openid/phpmyid.php @@ -1626,7 +1626,7 @@ function x_or ($a, $b) { $proto, OCP\Util::getServerHost(), // $port,//host already includes the path - $_SERVER["REQUEST_URI"]); + OCP\Util::getRequestUri()); // Set the default allowance for testing diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php index a84216b61b78..2a19b47235cc 100644 --- a/apps/files/appinfo/remote.php +++ b/apps/files/appinfo/remote.php @@ -29,12 +29,14 @@ // Backends $authBackend = new OC_Connector_Sabre_Auth(); $lockBackend = new OC_Connector_Sabre_Locks(); +$requestBackend = new OC_Connector_Sabre_Request(); // Create ownCloud Dir $publicDir = new OC_Connector_Sabre_Directory(''); // Fire up server $server = new Sabre_DAV_Server($publicDir); +$server->httpRequest = $requestBackend; $server->setBaseUri($baseuri); // Load plugins diff --git a/apps/files/index.php b/apps/files/index.php index 493087d26f11..6336be029f08 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -39,7 +39,7 @@ $dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : ''; // Redirect if directory does not exist if(!OC_Filesystem::is_dir($dir.'/')) { - header('Location: '.$_SERVER['SCRIPT_NAME'].''); + header('Location: '.OC_Request::scriptName().''); exit(); } diff --git a/config/config.sample.php b/config/config.sample.php index c4cb719796b2..74c0b349e556 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -30,6 +30,12 @@ /* Force use of HTTPS connection (true = use HTTPS) */ "forcessl" => false, +/* Host of the SSL proxy */ +"sslproxyhost" => "", + +/* URL for SSL proxy, as seen by the browser */ +"sslproxyprefix" => "", + /* Theme to use for OwnCloud */ "theme" => "", diff --git a/core/templates/login.php b/core/templates/login.php index 2c9b766aa4de..69a944683988 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,5 +1,5 @@ -