Plugin Directory

Changeset 1701040


Ignore:
Timestamp:
07/23/2017 01:37:43 PM (9 years ago)
Author:
john ackers
Message:

fix , SSL_VERIFYHOST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ecampaign/branches/maintenance/uk/MP.class.php

    r1700883 r1701040  
    6868    curl_setopt($ch, CURLOPT_HEADER, 0);
    6969    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    70     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);
     70    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    7171     
    7272    $xml = curl_exec($ch);
     
    118118    $mpInfo = self::fetchResource($url);
    119119    $member_id = $mpInfo ['member_id'];
    120     $constituency = $mpInfo ['constituency'];
     120    $constituencyName = $mpInfo ['constituency'];
    121121    global $wpdb ;
    122122
    123     $query = $wpdb->prepare ( "select constituency, `First name`, `Surname`, `Addressable Title`, addressAs, email from mp where constituency='%s'", $constituency );
     123    $query = $wpdb->prepare ( "select constituency, `First name`, `Surname`, `Addressable Title`, addressAs, email from mp where constituency='%s'", $constituencyName );
    124124
    125125    $wpdb->show_errors(false);
Note: See TracChangeset for help on using the changeset viewer.