Changeset 3435504
- Timestamp:
- 01/08/2026 09:58:42 PM (2 months ago)
- Location:
- mailchimp/tags/1.8.1
- Files:
-
- 3 edited
- 1 copied
-
. (copied) (copied from mailchimp/tags/1.8.0)
-
mailchimp.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
views/setup_page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mailchimp/tags/1.8.1/mailchimp.php
r3290145 r3435504 5 5 * Description: Add a Mailchimp signup form block, widget or shortcode to your WordPress site. 6 6 * Text Domain: mailchimp 7 * Version: 1.8. 07 * Version: 1.8.1 8 8 * Requires at least: 6.4 9 9 * Requires PHP: 7.0 … … 68 68 69 69 // Version constant for easy CSS refreshes 70 define( 'MCSF_VER', '1.8. 0' );70 define( 'MCSF_VER', '1.8.1' ); 71 71 72 72 // What's our permission (capability) threshold … … 565 565 } 566 566 567 if ( 568 ! current_user_can( MCSF_CAP_THRESHOLD ) || 569 ! isset( $_POST['update_mc_list_id_nonce'] ) || 570 ! wp_verify_nonce( sanitize_key( $_POST['update_mc_list_id_nonce'] ), 'update_mc_list_id_action' ) 571 ) { 572 wp_die( 'Security check failed.' ); 573 } 574 567 575 if ( empty( $_POST['mc_list_id'] ) ) { 568 576 $msg = esc_html__( 'Please choose a valid list', 'mailchimp' ); … … 570 578 return; 571 579 } 572 573 // Simple permission check before going through all this574 if ( ! current_user_can( MCSF_CAP_THRESHOLD ) ) { return; }575 580 576 581 $api = mailchimp_sf_get_api(); -
mailchimp/tags/1.8.1/readme.txt
r3290145 r3435504 3 3 Tags: mailchimp, email, newsletter, signup, marketing 4 4 Tested up to: 6.8 5 Stable tag: 1.8. 05 Stable tag: 1.8.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://spdx.org/licenses/GPL-2.0-or-later.html … … 81 81 82 82 == Changelog == 83 84 = 1.8.1 - 2026-01-08 = 85 * **Fix:** Provide CSRF hardening for Mailchimp List changes. 83 86 84 87 = 1.8.0 - 2025-05-08 = -
mailchimp/tags/1.8.1/views/setup_page.php
r3290145 r3435504 89 89 <td> 90 90 <input type="hidden" name="mcsf_action" value="update_mc_list_id" /> 91 <?php wp_nonce_field( 'update_mc_list_id_action', 'update_mc_list_id_nonce' ); ?> 91 92 <input type="submit" name="Submit" value="<?php esc_attr_e( 'Update List', 'mailchimp' ); ?>" class="button mailchimp-sf-button small" /> 92 93 </td>
Note: See TracChangeset
for help on using the changeset viewer.