]> 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>
Mon, 11 Jun 2012 13:22:58 +0000 (15:22 +0200)
index.php

index 07f8436720da380baa088c8ad7a0b756d743d0da..b90b1b310a90864fc5e277bbd3f6a65b687492e5 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -112,6 +112,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;