1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/15570] Allow file downloader to use TLS greater than 1.0

PHPBB3-15570
This commit is contained in:
kasimi 2018-02-25 10:25:33 +01:00
parent adc75b700f
commit 488de11493
No known key found for this signature in database
GPG Key ID: 3163AB573241193A

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");