1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 23:40:57 +01:00

Fix next_uri

Summary: we were using the "path" as the next_uri and that drops some delicious get parameters

Test Plan: see T1140; basically re-ran the steps listed there and they passed!

Reviewers: epriestley, njhartwell

Reviewed By: epriestley

CC: aran, Koolvin

Maniphest Tasks: T1140, T1009

Differential Revision: https://secure.phabricator.com/D2299
This commit is contained in:
Bob Trahan 2012-04-22 20:39:54 +02:00
parent c53dd9968b
commit 8069694640

View file

@ -64,9 +64,11 @@ final class PhabricatorLoginController
));
}
$next_uri = $this->getRequest()->getPath();
if ($next_uri == '/login/') {
$next_uri_path = $this->getRequest()->getPath();
if ($next_uri_path == '/login/') {
$next_uri = '/';
} else {
$next_uri = $this->getRequest()->getRequestURI();
}
if (!$request->isFormPost()) {