Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100914095
PhabricatorPhurlShortURLController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 3, 21:53
Size
483 B
Mime Type
text/x-php
Expires
Wed, Feb 5, 21:53 (2 d)
Engine
blob
Format
Raw Data
Handle
24053212
Attached To
rPH Phabricator
PhabricatorPhurlShortURLController.php
View Options
<?php
final
class
PhabricatorPhurlShortURLController
extends
PhabricatorPhurlController
{
public
function
shouldRequireLogin
()
{
return
false
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$append
=
$request
->
getURIData
(
'append'
);
$main_domain_uri
=
PhabricatorEnv
::
getProductionURI
(
'/u/'
.
$append
);
return
id
(
new
AphrontRedirectResponse
())
->
setIsExternal
(
true
)
->
setURI
(
$main_domain_uri
);
}
}
Event Timeline
Log In to Comment