From d6c2bd0fbe29a7f5767be6107e8f568228694753 Mon Sep 17 00:00:00 2001 From: Junaid Bhura Date: Tue, 30 Oct 2018 19:18:45 +1030 Subject: [PATCH] Fix Gravity forms bug on some Windows machines --- Http.php | 2 ++ composer.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Http.php b/Http.php index b28d1ed..a642774 100644 --- a/Http.php +++ b/Http.php @@ -24,6 +24,8 @@ public function post( $url = '', $args = array() ) { curl_setopt( $curl_handle, CURLOPT_URL, $url ); curl_setopt( $curl_handle, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $curl_handle, CURLOPT_FOLLOWLOCATION, true ); + curl_setopt( $curl_handle, CURLOPT_SSL_VERIFYPEER, 0 ); + curl_setopt( $curl_handle, CURLOPT_SSL_VERIFYHOST, 0 ); curl_setopt( $curl_handle, CURLOPT_CUSTOMREQUEST, 'POST' ); if ( ! empty( $args ) ) { curl_setopt( $curl_handle, CURLOPT_POSTFIELDS, http_build_query( $args ) ); diff --git a/composer.json b/composer.json index e452ef9..efcd313 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "junaidbhura/composer-wp-pro-plugins", "type": "composer-plugin", - "version": "1.0.4", + "version": "1.0.5", "require": { "vlucas/phpdotenv": "^2.4", "composer-plugin-api": "^1.1"