diff --git a/core/templates/login.php b/core/templates/login.php index bedff4453b0..bb7a8337523 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -1,5 +1,5 @@ -
+
'; } ?> diff --git a/lib/base.php b/lib/base.php index b89859ab2dd..41ff1870059 100644 --- a/lib/base.php +++ b/lib/base.php @@ -549,7 +549,8 @@ class OC{ else { OC_User::unsetMagicInCookie(); } - OC_Util::redirectToDefaultPage(); + header( 'Location: '.$_SERVER['REQUEST_URI'] ); + exit(); } return true; }