@kirigami/php-prepros 1.9.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,15 +59,15 @@ class CURL {
59
59
  CURLOPT_NOBODY => true,
60
60
  CURLOPT_FOLLOWLOCATION => true,
61
61
  CURLOPT_TIMEOUT => 15,
62
- CURLOPT_SSL_VERIFYPEER => false,
63
- CURLOPT_SSL_VERIFYHOST => false,
62
+ CURLOPT_SSL_VERIFYPEER => true,
63
+ CURLOPT_SSL_VERIFYHOST => 2,
64
64
  CURLOPT_ENCODING => 'gzip, deflate',
65
65
  CURLOPT_COOKIEFILE => $cookiePath,
66
66
  CURLOPT_COOKIEJAR => $cookiePath,
67
67
  CURLOPT_HTTPHEADER => self::HEADERS,
68
68
  ]);
69
- curl_exec($ch);
70
- $info = curl_getinfo($ch);
69
+ $result = curl_exec($ch);
70
+ $info = $result === false ? false : curl_getinfo($ch);
71
71
  PREPROS::exportFile($cookiePath);
72
72
  return $info;
73
73
  }
@@ -81,8 +81,8 @@ class CURL {
81
81
  curl_setopt_array($chnd, [
82
82
  CURLOPT_AUTOREFERER => true,
83
83
  CURLOPT_FOLLOWLOCATION => true,
84
- CURLOPT_SSL_VERIFYHOST => false,
85
- CURLOPT_SSL_VERIFYPEER => false,
84
+ CURLOPT_SSL_VERIFYHOST => 2,
85
+ CURLOPT_SSL_VERIFYPEER => true,
86
86
  CURLOPT_TIMEOUT => 60,
87
87
  CURLOPT_CONNECTTIMEOUT => 10,
88
88
  CURLOPT_ENCODING => 'gzip,deflate',
@@ -120,4 +120,4 @@ class CURL {
120
120
  }
121
121
 
122
122
 
123
- }
123
+ }