mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Fix invalid redirect when issuing actions on buildables
Summary: Caught this with the new redirect validation logic. The `$return_uri` was being set as just `B123` which is not valid. Prefixing it with `/` (like is done in `HarbormasterBuildActionController` already) gives the correct result of reloading the buildable's page. Test Plan: Restarted all builds on a buildable, saw the page reload correctly. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D10320
This commit is contained in:
parent
b7ad48aa50
commit
1ffa16aa6b
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ final class HarbormasterBuildableActionController
|
|||
}
|
||||
}
|
||||
|
||||
$return_uri = $buildable->getMonogram();
|
||||
$return_uri = '/'.$buildable->getMonogram();
|
||||
if ($request->isDialogFormPost() && $issuable) {
|
||||
$editor = id(new HarbormasterBuildableTransactionEditor())
|
||||
->setActor($viewer)
|
||||
|
|
Loading…
Reference in a new issue