[ticket/12618] Change ssl:// to tls://

PHPBB3-12618
This commit is contained in:
Kilian 2016-01-10 19:22:45 +01:00
parent 49f8192ba2
commit ad34b87824

View file

@ -42,7 +42,7 @@ class file_downloader
$this->error_number = 0; $this->error_number = 0;
$this->error_string = ''; $this->error_string = '';
if ($socket = @fsockopen(($port == 443 ? 'ssl://' : '') . $host, $port, $this->error_number, $this->error_string, $timeout)) if ($socket = @fsockopen(($port == 443 ? 'tls://' : '') . $host, $port, $this->error_number, $this->error_string, $timeout))
{ {
@fputs($socket, "GET $directory/$filename HTTP/1.0\r\n"); @fputs($socket, "GET $directory/$filename HTTP/1.0\r\n");
@fputs($socket, "HOST: $host\r\n"); @fputs($socket, "HOST: $host\r\n");