Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F106035
require.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Jan 30 2014, 1:10 AM
2014-01-30 01:10:24 (UTC+0)
Size
535 B
Referenced Files
None
Subscribers
None
require.diff
View Options
diff --git a/src/aphront/AphrontRequest.php b/src/aphront/AphrontRequest.php
index 407221d..8ed3ad0 100644
--- a/src/aphront/AphrontRequest.php
+++ b/src/aphront/AphrontRequest.php
@@ -305,6 +305,11 @@ final class AphrontRequest {
* @task cookie
*/
private function getCookieDomainURI() {
+ if (PhabricatorEnv::getEnvConfig('security.require-https') &&
+ !$this->isHTTPS()) {
+ return null;
+ }
+
$host = $this->getHost();
// If there's no base domain configured, just use whatever the request
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/rn/ka/iaaymvjjsewnfvpd
Default Alt Text
require.diff (535 B)
Attached To
Mode
P1053 require.diff
Attached
Detach File
Event Timeline
Log In to Comment