aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/file_downloader.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-01-12 04:31:15 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-12 04:31:15 +0100
commit68d945e93190e04b596a819742b1d88ef5495d4a (patch)
treee67dab7f95c68482a6b447d3bd601732f95e46ff /phpBB/phpbb/file_downloader.php
parent7f7b09fdeb087ed826bf5216fa271f2dd65c52e6 (diff)
parent826d6aac74303afa3fee78a4874e7ac5ca210630 (diff)
downloadforums-68d945e93190e04b596a819742b1d88ef5495d4a.tar
forums-68d945e93190e04b596a819742b1d88ef5495d4a.tar.gz
forums-68d945e93190e04b596a819742b1d88ef5495d4a.tar.bz2
forums-68d945e93190e04b596a819742b1d88ef5495d4a.tar.xz
forums-68d945e93190e04b596a819742b1d88ef5495d4a.zip
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/phpbb/file_downloader.php')
-rw-r--r--phpBB/phpbb/file_downloader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/file_downloader.php b/phpBB/phpbb/file_downloader.php
index 462b87ca51..ab9505a14c 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($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, "HOST: $host\r\n");