]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Always generate local HTTPS links if ssl is 'always'
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 19 Oct 2013 12:52:09 +0000 (14:52 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 19 Oct 2013 12:59:02 +0000 (14:59 +0200)
The isHTTPS call won't work in cli mode, so install_cli.php should
solve it some other way for initial profile url and User uri.

lib/util.php

index 608938c4c0c45db366fada5bcc90aac17039d496..f1f3437eb3bf733e3ee30fe99317a048666b53cc 100644 (file)
@@ -1241,7 +1241,9 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad
         $r = Router::get();
         $path = $r->build($action, $args, $params, $fragment);
 
-        $ssl = StatusNet::isHTTPS() || common_is_sensitive($action);
+        $ssl = common_config('site', 'ssl') === 'always'
+                || StatusNet::isHTTPS()
+                || common_is_sensitive($action);
 
         if (common_config('site','fancy')) {
             $url = common_path($path, $ssl, $addSession);