From: Mikael Nordfeldth Date: Fri, 18 Oct 2013 16:17:37 +0000 (+0200) Subject: Installer redirects to HTTPS if ssl is set to 'always' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f708663679eb549568f9ad3722885297a587020;p=quix0rs-gnu-social.git Installer redirects to HTTPS if ssl is set to 'always' --- diff --git a/lib/installer.php b/lib/installer.php index bf30d00786..bfe8c5259f 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -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(