]> source.dussan.org Git - nextcloud-server.git/commitdiff
Redirect HTTP Auth requests to REQUEST_URI. Partial fix for http://bugs.owncloud...
authorThomas Tanghus <thomas@tanghus.net>
Mon, 11 Jun 2012 13:22:58 +0000 (15:22 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Wed, 13 Jun 2012 16:31:36 +0000 (18:31 +0200)
index.php

index 690fc90e7524007281bd1fc360573178dd32717b..5042ede2e27e324082db62a57b00481383e00754 100644 (file)
--- a/index.php
+++ b/index.php
@@ -109,6 +109,7 @@ elseif(OC_User::isLoggedIn()) {
                if (OC_User::login($_SERVER["PHP_AUTH_USER"],$_SERVER["PHP_AUTH_PW"]))  {
                        //OC_Log::write('core',"Logged in with HTTP Authentication",OC_Log::DEBUG);
                        OC_User::unsetMagicInCookie();
+                       $_REQUEST['redirect_url'] = (isset($_SERVER['REQUEST_URI'])?$_SERVER['REQUEST_URI']:'');
                        OC_Util::redirectToDefaultPage();
                }else{
                        $error = true;