1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 17:10:53 +01:00

Merge branch '3.2.x'

This commit is contained in:
Marc Alexander 2018-02-28 21:03:03 +01:00
commit 7dc4eea66b
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

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