aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-08 13:26:19 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-08 13:26:19 +0100
commit8cf086ef9b200f0b59348c0f0d4946f9ebc4adae (patch)
treef5e5ddfcfaf16381acbb1326b17b3fb0d1dfec90 /phpBB/phpbb/files
parent[ticket/14448] Let user decide if remote upload certs should be checked (diff)
downloadphpbb-8cf086ef9b200f0b59348c0f0d4946f9ebc4adae.tar.gz
phpbb-8cf086ef9b200f0b59348c0f0d4946f9ebc4adae.tar.bz2
phpbb-8cf086ef9b200f0b59348c0f0d4946f9ebc4adae.zip
[ticket/14448] Correctly pass verify setting if available
PHPBB3-14448
Diffstat (limited to 'phpBB/phpbb/files')
-rw-r--r--phpBB/phpbb/files/types/remote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/files/types/remote.php b/phpBB/phpbb/files/types/remote.php
index 7e5157baa9..1fdba0ca32 100644
--- a/phpBB/phpbb/files/types/remote.php
+++ b/phpBB/phpbb/files/types/remote.php
@@ -105,7 +105,7 @@ class remote extends base
$guzzle_options = [
'timeout' => $this->upload->upload_timeout,
'connect_timeout' => $this->upload->upload_timeout,
- 'verify' => !empty($this->config['remote_upload_verify']),
+ 'verify' => !empty($this->config['remote_upload_verify']) ? (bool) $this->config['remote_upload_verify'] : false,
];
$client = new \GuzzleHttp\Client($guzzle_options);