diff options
author | kasimi <mail@kasimi.net> | 2018-02-25 10:25:33 +0100 |
---|---|---|
committer | kasimi <mail@kasimi.net> | 2018-02-25 10:25:33 +0100 |
commit | 488de11493b96be70792f236665ff7380ac855b5 (patch) | |
tree | 255785ce7ea4e7f97a69cdc9c34993a9eb5cd87f /phpBB/phpbb/file_downloader.php | |
parent | adc75b700f0cf3d6d47689c00932fd1f41bc58e9 (diff) | |
download | forums-488de11493b96be70792f236665ff7380ac855b5.tar forums-488de11493b96be70792f236665ff7380ac855b5.tar.gz forums-488de11493b96be70792f236665ff7380ac855b5.tar.bz2 forums-488de11493b96be70792f236665ff7380ac855b5.tar.xz forums-488de11493b96be70792f236665ff7380ac855b5.zip |
[ticket/15570] Allow file downloader to use TLS greater than 1.0
PHPBB3-15570
Diffstat (limited to 'phpBB/phpbb/file_downloader.php')
-rw-r--r-- | phpBB/phpbb/file_downloader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/file_downloader.php b/phpBB/phpbb/file_downloader.php index ab9505a14c..403ca5bc83 100644 --- a/phpBB/phpbb/file_downloader.php +++ b/phpBB/phpbb/file_downloader.php @@ -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"); |