Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15450480
D16241.id39076.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
630 B
Referenced Files
None
Subscribers
None
D16241.id39076.diff
View Options
diff --git a/src/applications/phame/site/PhameBlogSite.php b/src/applications/phame/site/PhameBlogSite.php
--- a/src/applications/phame/site/PhameBlogSite.php
+++ b/src/applications/phame/site/PhameBlogSite.php
@@ -18,9 +18,10 @@
}
public function shouldRequireHTTPS() {
- // TODO: We should probably provide options here eventually, but for now
- // just never require HTTPS for external-domain blogs.
- return false;
+ $full_uri = $this->getBlog()->getDomainFullURI();
+ $full_uri = new PhutilURI($full_uri);
+
+ return ($full_uri->getProtocol() == 'https');
}
public function getPriority() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 3:57 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7226130
Default Alt Text
D16241.id39076.diff (630 B)
Attached To
Mode
D16241: Redirect https blogs
Attached
Detach File
Event Timeline
Log In to Comment