Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890614
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/applications/base/controller/PhabricatorRedirectController.php b/src/applications/base/controller/PhabricatorRedirectController.php
index d12c728e1c..491382e192 100644
--- a/src/applications/base/controller/PhabricatorRedirectController.php
+++ b/src/applications/base/controller/PhabricatorRedirectController.php
@@ -1,27 +1,21 @@
<?php
final class PhabricatorRedirectController extends PhabricatorController {
- private $uri;
- private $allowExternal;
-
public function shouldRequireLogin() {
return false;
}
public function shouldRequireEnabledUser() {
return false;
}
- public function willProcessRequest(array $data) {
- $this->uri = $data['uri'];
- $this->allowExternal = idx($data, 'external', false);
- }
-
- public function processRequest() {
+ public function handleRequest(AphrontRequest $request) {
+ $uri = $request->getURIData('uri');
+ $external = $request->getURIData('external', false);
return id(new AphrontRedirectResponse())
- ->setURI($this->uri)
- ->setIsExternal($this->allowExternal);
+ ->setURI($uri)
+ ->setIsExternal($external);
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Jan 19, 13:52 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125238
Default Alt Text
(1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment