Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115942881
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
Wed, Jun 4, 01:08
Size
483 B
Mime Type
text/x-php
Expires
Fri, Jun 6, 01:08 (2 d)
Engine
blob
Format
Raw Data
Handle
26504768
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