From 5e9e490a6b4f5e4131b2f914b9206a1b6298319f Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Sun, 25 Apr 2010 22:53:19 +0000 Subject: [PATCH] HttpFunctions: Fix bug where sslVerifyHost was only added to the CURL options when it would have no effect anyway. --- includes/HttpFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 5bf7050a16..134e244c70 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -735,7 +735,7 @@ class CurlHttpRequest extends HttpRequest { } $this->curlOptions[CURLOPT_USERAGENT] = $this->reqHeaders['User-Agent']; - if ( $this->sslVerifyHost ) { + if ( isset( $this->sslVerifyHost ) ) { $this->curlOptions[CURLOPT_SSL_VERIFYHOST] = $this->sslVerifyHost; } -- 2.20.1