Installer redirects to HTTPS if ssl is set to 'always'

This commit is contained in:
Mikael Nordfeldth 2013-10-18 18:17:37 +02:00
parent 8b08a1e78f
commit 2f70866367
1 changed files with 2 additions and 4 deletions

View 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(