Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91967799
PhabricatorSite.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, Nov 16, 05:48
Size
580 B
Mime Type
text/x-php
Expires
Mon, Nov 18, 05:48 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22355927
Attached To
rPH Phabricator
PhabricatorSite.php
View Options
<?php
abstract
class
PhabricatorSite
extends
AphrontSite
{
public
function
shouldRequireHTTPS
()
{
// If this is an intracluster request, it's okay for it to use HTTP even
// if the site otherwise requires HTTPS. It is common to terminate SSL at
// a load balancer and use plain HTTP from then on, and administrators are
// usually not concerned about attackers observing traffic within a
// datacenter.
if
(
PhabricatorEnv
::
isClusterRemoteAddress
())
{
return
false
;
}
return
PhabricatorEnv
::
getEnvConfig
(
'security.require-https'
);
}
}
Event Timeline
Log In to Comment