]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Installer redirects to HTTPS if ssl is set to 'always'
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 18 Oct 2013 16:17:37 +0000 (18:17 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 18 Oct 2013 16:17:37 +0000 (18:17 +0200)
lib/installer.php

index bf30d00786261c7f72d48a9263f9f40c0177f30b..bfe8c5259fbf447c2d518dbbeda2b2c37aa9b280 100644 (file)
@@ -640,10 +640,8 @@ endforeach;
         // Set permissions back to something decent
         chmod(INSTALLDIR.'/config.php', 0644);
         
-        /*
-            TODO https needs to be considered
-        */
-        $link = "http://".$this->server.'/'.$this->path;
+        $scheme = $this->ssl === 'always' ? 'https' : 'http';
+        $link = "{$scheme}://{$this->server}/{$this->path}";
 
         $this->updateStatus("StatusNet has been installed at $link");
         $this->updateStatus(