Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99508385
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
Sat, Jan 25, 02:16
Size
483 B
Mime Type
text/x-php
Expires
Mon, Jan 27, 02:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23809459
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