PluginProbe
MailerLite – WooCommerce integration / trunk
MailerLite – WooCommerce integration vtrunk
3.1.27 3.1.25 3.1.26 3.1.24 3.1.23 3.1.22 3.1.21 3.1.20 3.1.19 3.1.18 3.1.17 3.1.16 3.1.15 1.8.7 1.8.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 All 148 releases
← All changes | includes/api/WooMailerLiteApi.php +6 -1 3.1.18 → trunk View file →
@@ -174,9 +174,14 @@
174 174
175 175 $payload['body']['data'] = is_array($body) ? $body : json_decode($body, true);
176 176 $payload['body']['endpoint'] = $endpoint;
177 177
178 - $payload['body']['settings'] = WooMailerLiteOptions::all();
178 + $settings = WooMailerLiteOptions::all();
179 + // Never mirror credentials to the remote log endpoint. Strip the
180 + // encrypted API key and classic consumer key/secret from the blob.
181 + unset($settings['apiKey'], $settings['consumerKey'], $settings['consumerSecret']);
182 +
183 + $payload['body']['settings'] = $settings;
179 184 $payload['body']['settings']['woo_ml_shop_id'] = WooMailerLiteOptions::get('shopId');
180 185 unset($payload['method']);
181 186 $payload['body'] = json_encode($payload['body']);
182 187