HttpFunctions: Fix bug where sslVerifyHost was only added to the CURL options when...
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 25 Apr 2010 22:53:19 +0000 (22:53 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 25 Apr 2010 22:53:19 +0000 (22:53 +0000)
includes/HttpFunctions.php

index 5bf7050..134e244 100644 (file)
@@ -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;
                }