[Pkg-owncloud-commits] [owncloud] 178/273: Redirect after session expiry to the previous loaded page
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:13:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit b6a4cc20f7498e8abc750795e36440c0d704589c
Author: Morris Jobke <hey at morrisjobke.de>
Date: Tue Jul 1 16:54:52 2014 +0200
Redirect after session expiry to the previous loaded page
* fixes #6945
---
lib/private/appframework/middleware/security/securitymiddleware.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/private/appframework/middleware/security/securitymiddleware.php b/lib/private/appframework/middleware/security/securitymiddleware.php
index 5b56210..948a43c 100644
--- a/lib/private/appframework/middleware/security/securitymiddleware.php
+++ b/lib/private/appframework/middleware/security/securitymiddleware.php
@@ -143,6 +143,8 @@ class SecurityMiddleware extends Middleware {
// TODO: replace with link to route
$url = $this->urlGenerator->getAbsoluteURL('index.php');
+ // add redirect URL to redirect to the previous page after login
+ $url .= '?redirect_url=' . urlencode($this->request->server['REQUEST_URI']);
$response = new RedirectResponse($url);
$this->logger->debug($exception->getMessage());
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list