diff options
author | Michiel de Jong <michiel@unhosted.org> | 2012-05-18 15:11:01 +0200 |
---|---|---|
committer | Michiel de Jong <michiel@unhosted.org> | 2012-05-18 15:11:01 +0200 |
commit | 9b5e8a2c634e07d9c6e1693158e224eda7e5f673 (patch) | |
tree | aa9773c0251597bcedf749542198b1dd1bfc89e4 /index.php | |
parent | ea33b4aaa104252ff344e93a434e6c2eedcf438b (diff) | |
download | nextcloud-server-9b5e8a2c634e07d9c6e1693158e224eda7e5f673.tar.gz nextcloud-server-9b5e8a2c634e07d9c6e1693158e224eda7e5f673.zip |
fix redirect to desired page after login
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php index 9cec3201e1c..8eea0fe454f 100644 --- a/index.php +++ b/index.php @@ -117,6 +117,6 @@ elseif(OC_User::isLoggedIn()) { if(!array_key_exists('sectoken', $_SESSION) || (array_key_exists('sectoken', $_SESSION) && is_null(OC::$REQUESTEDFILE)) || substr(OC::$REQUESTEDFILE, -3) == 'php'){ $sectoken=rand(1000000,9999999); $_SESSION['sectoken']=$sectoken; - OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => isset($_REQUEST['redirect_url'])?htmlentities($_REQUEST['redirect_url']):'' )); + OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => $_SERVER['REQUEST_URI'])); } } |