From: Thomas Tanghus Date: Mon, 11 Jun 2012 13:22:58 +0000 (+0200) Subject: Redirect HTTP Auth requests to REQUEST_URI. Partial fix for http://bugs.owncloud... X-Git-Tag: v4.5.0beta1~74^2~407^2~38^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f6978c30f5e64c4194ebe46c8c78d8ef1c002fd;p=nextcloud-server.git Redirect HTTP Auth requests to REQUEST_URI. Partial fix for http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-874 --- diff --git a/index.php b/index.php index 07f8436720d..b90b1b310a9 100755 --- 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;