Version Description
Download this release
Release Info
Developer | amazonlinkbuilder |
Plugin | Amazon Associates Link Builder |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- aalb_config.php +1 -1
- amazon-associates-link-builder.php +1 -1
- composer.json +0 -5
- composer.lock +0 -232
- composer.phar +0 -0
- ip2country/aalb_customer_country.php +1 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +3 -3
- vendor/composer/ca-bundle/README.md +8 -0
- vendor/composer/ca-bundle/composer.json +2 -5
- vendor/composer/ca-bundle/src/CaBundle.php +18 -1
- vendor/composer/installed.json +8 -11
aalb_config.php
CHANGED
@@ -13,7 +13,7 @@ and limitations under the License.
|
|
13 |
*/
|
14 |
|
15 |
//version
|
16 |
-
define( 'AALB_PLUGIN_CURRENT_VERSION', '1.5.
|
17 |
|
18 |
//Version no. with multi locale settings page
|
19 |
define( 'AALB_MULTI_LOCALE_SETTINGS_PLUGIN_VERSION', '1.4.12' );
|
13 |
*/
|
14 |
|
15 |
//version
|
16 |
+
define( 'AALB_PLUGIN_CURRENT_VERSION', '1.5.1' );
|
17 |
|
18 |
//Version no. with multi locale settings page
|
19 |
define( 'AALB_MULTI_LOCALE_SETTINGS_PLUGIN_VERSION', '1.4.12' );
|
amazon-associates-link-builder.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
/*
|
8 |
Plugin Name: Amazon Associates Link Builder
|
9 |
Description: Amazon Associates Link Builder is the official free Amazon Associates Program plugin for WordPress. The plugin enables you to search for products in the Amazon catalog, access real-time price and availability information, and easily create links in your posts to products on Amazon.com. You will be able to generate text links, create custom ad units, or take advantage of out-of-the-box widgets that we’ve designed and included with the plugin.
|
10 |
-
Version: 1.5.
|
11 |
Author: Amazon Associates Program
|
12 |
Author URI: https://affiliate-program.amazon.com/
|
13 |
License: GPLv2
|
7 |
/*
|
8 |
Plugin Name: Amazon Associates Link Builder
|
9 |
Description: Amazon Associates Link Builder is the official free Amazon Associates Program plugin for WordPress. The plugin enables you to search for products in the Amazon catalog, access real-time price and availability information, and easily create links in your posts to products on Amazon.com. You will be able to generate text links, create custom ad units, or take advantage of out-of-the-box widgets that we’ve designed and included with the plugin.
|
10 |
+
Version: 1.5.1
|
11 |
Author: Amazon Associates Program
|
12 |
Author URI: https://affiliate-program.amazon.com/
|
13 |
License: GPLv2
|
composer.json
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"require": {
|
3 |
-
"geoip2/geoip2": "~2.0"
|
4 |
-
}
|
5 |
-
}
|
|
|
|
|
|
|
|
|
|
composer.lock
DELETED
@@ -1,232 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"_readme": [
|
3 |
-
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
5 |
-
"This file is @generated automatically"
|
6 |
-
],
|
7 |
-
"content-hash": "25737d43de99fb5d718029bd29d5374e",
|
8 |
-
"packages": [
|
9 |
-
{
|
10 |
-
"name": "composer/ca-bundle",
|
11 |
-
"version": "1.0.9",
|
12 |
-
"source": {
|
13 |
-
"type": "git",
|
14 |
-
"url": "https://github.com/composer/ca-bundle.git",
|
15 |
-
"reference": "36344aeffdc37711335563e6108cda86566432a6"
|
16 |
-
},
|
17 |
-
"dist": {
|
18 |
-
"type": "zip",
|
19 |
-
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/36344aeffdc37711335563e6108cda86566432a6",
|
20 |
-
"reference": "36344aeffdc37711335563e6108cda86566432a6",
|
21 |
-
"shasum": ""
|
22 |
-
},
|
23 |
-
"require": {
|
24 |
-
"ext-openssl": "*",
|
25 |
-
"ext-pcre": "*",
|
26 |
-
"php": "^5.3.2 || ^7.0"
|
27 |
-
},
|
28 |
-
"require-dev": {
|
29 |
-
"phpunit/phpunit": "^4.5",
|
30 |
-
"psr/log": "^1.0",
|
31 |
-
"symfony/process": "^2.5 || ^3.0"
|
32 |
-
},
|
33 |
-
"suggest": {
|
34 |
-
"symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+"
|
35 |
-
},
|
36 |
-
"type": "library",
|
37 |
-
"extra": {
|
38 |
-
"branch-alias": {
|
39 |
-
"dev-master": "1.x-dev"
|
40 |
-
}
|
41 |
-
},
|
42 |
-
"autoload": {
|
43 |
-
"psr-4": {
|
44 |
-
"Composer\\CaBundle\\": "src"
|
45 |
-
}
|
46 |
-
},
|
47 |
-
"notification-url": "https://packagist.org/downloads/",
|
48 |
-
"license": [
|
49 |
-
"MIT"
|
50 |
-
],
|
51 |
-
"authors": [
|
52 |
-
{
|
53 |
-
"name": "Jordi Boggiano",
|
54 |
-
"email": "j.boggiano@seld.be",
|
55 |
-
"homepage": "http://seld.be"
|
56 |
-
}
|
57 |
-
],
|
58 |
-
"description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
|
59 |
-
"keywords": [
|
60 |
-
"cabundle",
|
61 |
-
"cacert",
|
62 |
-
"certificate",
|
63 |
-
"ssl",
|
64 |
-
"tls"
|
65 |
-
],
|
66 |
-
"time": "2017-11-13T15:51:25+00:00"
|
67 |
-
},
|
68 |
-
{
|
69 |
-
"name": "geoip2/geoip2",
|
70 |
-
"version": "v2.7.0",
|
71 |
-
"source": {
|
72 |
-
"type": "git",
|
73 |
-
"url": "https://github.com/maxmind/GeoIP2-php.git",
|
74 |
-
"reference": "ca9f9a244474d97eac1ef542aaced7cc944bafbe"
|
75 |
-
},
|
76 |
-
"dist": {
|
77 |
-
"type": "zip",
|
78 |
-
"url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/ca9f9a244474d97eac1ef542aaced7cc944bafbe",
|
79 |
-
"reference": "ca9f9a244474d97eac1ef542aaced7cc944bafbe",
|
80 |
-
"shasum": ""
|
81 |
-
},
|
82 |
-
"require": {
|
83 |
-
"maxmind-db/reader": "~1.0",
|
84 |
-
"maxmind/web-service-common": "~0.4",
|
85 |
-
"php": ">=5.4"
|
86 |
-
},
|
87 |
-
"require-dev": {
|
88 |
-
"apigen/apigen": "*",
|
89 |
-
"friendsofphp/php-cs-fixer": "2.*",
|
90 |
-
"phpunit/phpunit": "4.*",
|
91 |
-
"squizlabs/php_codesniffer": "3.*"
|
92 |
-
},
|
93 |
-
"type": "library",
|
94 |
-
"autoload": {
|
95 |
-
"psr-4": {
|
96 |
-
"GeoIp2\\": "src"
|
97 |
-
}
|
98 |
-
},
|
99 |
-
"notification-url": "https://packagist.org/downloads/",
|
100 |
-
"license": [
|
101 |
-
"Apache-2.0"
|
102 |
-
],
|
103 |
-
"authors": [
|
104 |
-
{
|
105 |
-
"name": "Gregory J. Oschwald",
|
106 |
-
"email": "goschwald@maxmind.com",
|
107 |
-
"homepage": "http://www.maxmind.com/"
|
108 |
-
}
|
109 |
-
],
|
110 |
-
"description": "MaxMind GeoIP2 PHP API",
|
111 |
-
"homepage": "https://github.com/maxmind/GeoIP2-php",
|
112 |
-
"keywords": [
|
113 |
-
"IP",
|
114 |
-
"geoip",
|
115 |
-
"geoip2",
|
116 |
-
"geolocation",
|
117 |
-
"maxmind"
|
118 |
-
],
|
119 |
-
"time": "2017-10-27T19:20:22+00:00"
|
120 |
-
},
|
121 |
-
{
|
122 |
-
"name": "maxmind-db/reader",
|
123 |
-
"version": "v1.2.0",
|
124 |
-
"source": {
|
125 |
-
"type": "git",
|
126 |
-
"url": "https://github.com/maxmind/MaxMind-DB-Reader-php.git",
|
127 |
-
"reference": "1647820dfbcb552222fb5feb3a8387e2636394c9"
|
128 |
-
},
|
129 |
-
"dist": {
|
130 |
-
"type": "zip",
|
131 |
-
"url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/1647820dfbcb552222fb5feb3a8387e2636394c9",
|
132 |
-
"reference": "1647820dfbcb552222fb5feb3a8387e2636394c9",
|
133 |
-
"shasum": ""
|
134 |
-
},
|
135 |
-
"require": {
|
136 |
-
"php": ">=5.4"
|
137 |
-
},
|
138 |
-
"require-dev": {
|
139 |
-
"friendsofphp/php-cs-fixer": "2.*",
|
140 |
-
"phpunit/phpunit": "4.*",
|
141 |
-
"satooshi/php-coveralls": "1.0.*",
|
142 |
-
"squizlabs/php_codesniffer": "3.*"
|
143 |
-
},
|
144 |
-
"suggest": {
|
145 |
-
"ext-bcmath": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder",
|
146 |
-
"ext-gmp": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder",
|
147 |
-
"ext-maxminddb": "A C-based database decoder that provides significantly faster lookups"
|
148 |
-
},
|
149 |
-
"type": "library",
|
150 |
-
"autoload": {
|
151 |
-
"psr-4": {
|
152 |
-
"MaxMind\\Db\\": "src/MaxMind/Db"
|
153 |
-
}
|
154 |
-
},
|
155 |
-
"notification-url": "https://packagist.org/downloads/",
|
156 |
-
"license": [
|
157 |
-
"Apache-2.0"
|
158 |
-
],
|
159 |
-
"authors": [
|
160 |
-
{
|
161 |
-
"name": "Gregory J. Oschwald",
|
162 |
-
"email": "goschwald@maxmind.com",
|
163 |
-
"homepage": "http://www.maxmind.com/"
|
164 |
-
}
|
165 |
-
],
|
166 |
-
"description": "MaxMind DB Reader API",
|
167 |
-
"homepage": "https://github.com/maxmind/MaxMind-DB-Reader-php",
|
168 |
-
"keywords": [
|
169 |
-
"database",
|
170 |
-
"geoip",
|
171 |
-
"geoip2",
|
172 |
-
"geolocation",
|
173 |
-
"maxmind"
|
174 |
-
],
|
175 |
-
"time": "2017-10-27T19:15:33+00:00"
|
176 |
-
},
|
177 |
-
{
|
178 |
-
"name": "maxmind/web-service-common",
|
179 |
-
"version": "v0.4.0",
|
180 |
-
"source": {
|
181 |
-
"type": "git",
|
182 |
-
"url": "https://github.com/maxmind/web-service-common-php.git",
|
183 |
-
"reference": "622f7c732a7f9c4c62497fc103939e042b6bdb88"
|
184 |
-
},
|
185 |
-
"dist": {
|
186 |
-
"type": "zip",
|
187 |
-
"url": "https://api.github.com/repos/maxmind/web-service-common-php/zipball/622f7c732a7f9c4c62497fc103939e042b6bdb88",
|
188 |
-
"reference": "622f7c732a7f9c4c62497fc103939e042b6bdb88",
|
189 |
-
"shasum": ""
|
190 |
-
},
|
191 |
-
"require": {
|
192 |
-
"composer/ca-bundle": "^1.0.3",
|
193 |
-
"ext-curl": "*",
|
194 |
-
"ext-json": "*",
|
195 |
-
"php": ">=5.4"
|
196 |
-
},
|
197 |
-
"require-dev": {
|
198 |
-
"friendsofphp/php-cs-fixer": "2.*",
|
199 |
-
"phpunit/phpunit": "4.*",
|
200 |
-
"squizlabs/php_codesniffer": "3.*"
|
201 |
-
},
|
202 |
-
"type": "library",
|
203 |
-
"autoload": {
|
204 |
-
"psr-4": {
|
205 |
-
"MaxMind\\Exception\\": "src/Exception",
|
206 |
-
"MaxMind\\WebService\\": "src/WebService"
|
207 |
-
}
|
208 |
-
},
|
209 |
-
"notification-url": "https://packagist.org/downloads/",
|
210 |
-
"license": [
|
211 |
-
"Apache-2.0"
|
212 |
-
],
|
213 |
-
"authors": [
|
214 |
-
{
|
215 |
-
"name": "Gregory Oschwald",
|
216 |
-
"email": "goschwald@maxmind.com"
|
217 |
-
}
|
218 |
-
],
|
219 |
-
"description": "Internal MaxMind Web Service API",
|
220 |
-
"homepage": "https://github.com/maxmind/web-service-common-php",
|
221 |
-
"time": "2017-07-06T17:48:21+00:00"
|
222 |
-
}
|
223 |
-
],
|
224 |
-
"packages-dev": [],
|
225 |
-
"aliases": [],
|
226 |
-
"minimum-stability": "stable",
|
227 |
-
"stability-flags": [],
|
228 |
-
"prefer-stable": false,
|
229 |
-
"prefer-lowest": false,
|
230 |
-
"platform": [],
|
231 |
-
"platform-dev": []
|
232 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
composer.phar
CHANGED
File without changes
|
ip2country/aalb_customer_country.php
CHANGED
@@ -54,9 +54,8 @@ class Aalb_Customer_Country {
|
|
54 |
$country_code = $country_code === "GB" ? "UK" : $country_code;
|
55 |
} catch ( Exception $e ) {
|
56 |
error_log( "Aalb_Customer_Country:get_country_iso_code failed." . $e->getMessage() );
|
57 |
-
} finally {
|
58 |
-
$reader->close();
|
59 |
}
|
|
|
60 |
}
|
61 |
|
62 |
return $country_code;
|
54 |
$country_code = $country_code === "GB" ? "UK" : $country_code;
|
55 |
} catch ( Exception $e ) {
|
56 |
error_log( "Aalb_Customer_Country:get_country_iso_code failed." . $e->getMessage() );
|
|
|
|
|
57 |
}
|
58 |
+
$reader->close();
|
59 |
}
|
60 |
|
61 |
return $country_code;
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitff138ce8b625f263df0814ae0d927869::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit04057e52b45ebf7b66537656fab0b7df
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitff138ce8b625f263df0814ae0d927869
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitff138ce8b625f263df0814ae0d927869', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitff138ce8b625f263df0814ae0d927869', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitff138ce8b625f263df0814ae0d927869::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'M' =>
|
@@ -49,8 +49,8 @@ class ComposerStaticInit04057e52b45ebf7b66537656fab0b7df
|
|
49 |
public static function getInitializer(ClassLoader $loader)
|
50 |
{
|
51 |
return \Closure::bind(function () use ($loader) {
|
52 |
-
$loader->prefixLengthsPsr4 =
|
53 |
-
$loader->prefixDirsPsr4 =
|
54 |
|
55 |
}, null, ClassLoader::class);
|
56 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitff138ce8b625f263df0814ae0d927869
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'M' =>
|
49 |
public static function getInitializer(ClassLoader $loader)
|
50 |
{
|
51 |
return \Closure::bind(function () use ($loader) {
|
52 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitff138ce8b625f263df0814ae0d927869::$prefixLengthsPsr4;
|
53 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitff138ce8b625f263df0814ae0d927869::$prefixDirsPsr4;
|
54 |
|
55 |
}, null, ClassLoader::class);
|
56 |
}
|
vendor/composer/ca-bundle/README.md
CHANGED
@@ -71,6 +71,14 @@ $context = stream_context_create($opts);
|
|
71 |
$result = file_get_contents('https://example.com', false, $context);
|
72 |
```
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
License
|
75 |
-------
|
76 |
|
71 |
$result = file_get_contents('https://example.com', false, $context);
|
72 |
```
|
73 |
|
74 |
+
## To use with Guzzle
|
75 |
+
|
76 |
+
```php
|
77 |
+
$client = new \GuzzleHttp\Client([
|
78 |
+
\GuzzleHttp\RequestOptions::VERIFY => \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath()
|
79 |
+
]);
|
80 |
+
```
|
81 |
+
|
82 |
License
|
83 |
-------
|
84 |
|
vendor/composer/ca-bundle/composer.json
CHANGED
@@ -27,12 +27,9 @@
|
|
27 |
"php": "^5.3.2 || ^7.0"
|
28 |
},
|
29 |
"require-dev": {
|
30 |
-
"phpunit/phpunit": "^4.
|
31 |
"psr/log": "^1.0",
|
32 |
-
"symfony/process": "^2.5 || ^3.0"
|
33 |
-
},
|
34 |
-
"suggest": {
|
35 |
-
"symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+"
|
36 |
},
|
37 |
"autoload": {
|
38 |
"psr-4": {
|
27 |
"php": "^5.3.2 || ^7.0"
|
28 |
},
|
29 |
"require-dev": {
|
30 |
+
"phpunit/phpunit": "^4.8.35",
|
31 |
"psr/log": "^1.0",
|
32 |
+
"symfony/process": "^2.5 || ^3.0 || ^4.0"
|
|
|
|
|
|
|
33 |
},
|
34 |
"autoload": {
|
35 |
"psr-4": {
|
vendor/composer/ca-bundle/src/CaBundle.php
CHANGED
@@ -130,7 +130,24 @@ class CaBundle
|
|
130 |
*/
|
131 |
public static function getBundledCaBundlePath()
|
132 |
{
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
|
136 |
/**
|
130 |
*/
|
131 |
public static function getBundledCaBundlePath()
|
132 |
{
|
133 |
+
$caBundleFile = __DIR__.'/../res/cacert.pem';
|
134 |
+
|
135 |
+
// cURL does not understand 'phar://' paths
|
136 |
+
// see https://github.com/composer/ca-bundle/issues/10
|
137 |
+
if (0 === strpos($caBundleFile, 'phar://')) {
|
138 |
+
file_put_contents(
|
139 |
+
$tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-'),
|
140 |
+
file_get_contents($caBundleFile)
|
141 |
+
);
|
142 |
+
|
143 |
+
register_shutdown_function(function() use ($tempCaBundleFile) {
|
144 |
+
@unlink($tempCaBundleFile);
|
145 |
+
});
|
146 |
+
|
147 |
+
$caBundleFile = $tempCaBundleFile;
|
148 |
+
}
|
149 |
+
|
150 |
+
return $caBundleFile;
|
151 |
}
|
152 |
|
153 |
/**
|
vendor/composer/installed.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
[
|
2 |
{
|
3 |
"name": "composer/ca-bundle",
|
4 |
-
"version": "1.0
|
5 |
-
"version_normalized": "1.0.
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/composer/ca-bundle.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
@@ -20,14 +20,11 @@
|
|
20 |
"php": "^5.3.2 || ^7.0"
|
21 |
},
|
22 |
"require-dev": {
|
23 |
-
"phpunit/phpunit": "^4.
|
24 |
"psr/log": "^1.0",
|
25 |
-
"symfony/process": "^2.5 || ^3.0"
|
26 |
},
|
27 |
-
"
|
28 |
-
"symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+"
|
29 |
-
},
|
30 |
-
"time": "2017-11-13T15:51:25+00:00",
|
31 |
"type": "library",
|
32 |
"extra": {
|
33 |
"branch-alias": {
|
1 |
[
|
2 |
{
|
3 |
"name": "composer/ca-bundle",
|
4 |
+
"version": "1.1.0",
|
5 |
+
"version_normalized": "1.1.0.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/composer/ca-bundle.git",
|
9 |
+
"reference": "943b2c4fcad1ef178d16a713c2468bf7e579c288"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/943b2c4fcad1ef178d16a713c2468bf7e579c288",
|
14 |
+
"reference": "943b2c4fcad1ef178d16a713c2468bf7e579c288",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
20 |
"php": "^5.3.2 || ^7.0"
|
21 |
},
|
22 |
"require-dev": {
|
23 |
+
"phpunit/phpunit": "^4.8.35",
|
24 |
"psr/log": "^1.0",
|
25 |
+
"symfony/process": "^2.5 || ^3.0 || ^4.0"
|
26 |
},
|
27 |
+
"time": "2017-11-29T09:37:33+00:00",
|
|
|
|
|
|
|
28 |
"type": "library",
|
29 |
"extra": {
|
30 |
"branch-alias": {
|