diff --git a/core/templates/login.php b/core/templates/login.php index bedff4453b..bb7a833752 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 b89859ab2d..41ff187005 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; }