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:
parent
c53dd9968b
commit
8069694640
1 changed files with 4 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue