Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1053
require.diff
Active
Public
Actions
Authored by
epriestley
on Jan 30 2014, 1:10 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F106035: require.diff
Jan 30 2014, 1:10 AM
2014-01-30 01:10:24 (UTC+0)
Subscribers
None
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
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Jan 30 2014, 1:10 AM
2014-01-30 01:10:24 (UTC+0)
epriestley
changed the title of this paste from untitled to
require.diff
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment