diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-11 15:22:58 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-11 15:22:58 +0200 |
commit | 4f6978c30f5e64c4194ebe46c8c78d8ef1c002fd (patch) | |
tree | d46af028c485a789d29e87ac3e55fb9ee5a3e55c /index.php | |
parent | 2ee809fd8636643c0ccc69bcf023ce2c404143e2 (diff) | |
download | nextcloud-server-4f6978c30f5e64c4194ebe46c8c78d8ef1c002fd.tar.gz nextcloud-server-4f6978c30f5e64c4194ebe46c8c78d8ef1c002fd.zip |
Redirect HTTP Auth requests to REQUEST_URI. Partial fix for http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-874
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 1 |
1 files changed, 1 insertions, 0 deletions
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; |