Plugin Directory

Changeset 1607404


Ignore:
Timestamp:
03/03/2017 07:32:26 PM (9 years ago)
Author:
briancolinger
Message:

Set sslverify to true by default.
Only disable sslverify if the constant VAULTPRESS_NO_SSL is set to true.
Props to @benedictsinger for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vaultpress/trunk/class.vaultpress-ixr-ssl-client.php

    r1321340 r1607404  
    3434        $this->headers['Content-Length'] = $length;
    3535
     36        $sslverify = true;
     37        if ( defined( 'VAULTPRESS_NO_SSL' ) && VAULTPRESS_NO_SSL ) {
     38            $sslverify = false;
     39        }
    3640        if ( class_exists( 'WP_Http' ) ) {
    3741            $args = array(
     
    3943                'body' => $xml,
    4044                'headers' => $this->headers,
    41                 'sslverify' => false,
     45                'sslverify' => $sslverify,
    4246                );
    4347            if ( $this->timeout )
Note: See TracChangeset for help on using the changeset viewer.