Changeset 3474342
- Timestamp:
- 03/04/2026 09:05:58 AM (8 days ago)
- Location:
- emailchef
- Files:
-
- 6 added
- 10 edited
- 1 copied
-
tags/3.5.2 (copied) (copied from emailchef/trunk)
-
tags/3.5.2/.distignoe (added)
-
tags/3.5.2/.wordpress-org/readme/README.md (modified) (2 diffs)
-
tags/3.5.2/README.md (modified) (2 diffs)
-
tags/3.5.2/admin/class-emailchef-admin.php (modified) (4 diffs)
-
tags/3.5.2/admin/js/emailchef-admin.js (modified) (3 diffs)
-
tags/3.5.2/emailchef.php (modified) (1 diff)
-
tags/3.5.2/scripts (added)
-
tags/3.5.2/scripts/patch-version.sh (added)
-
trunk/.distignoe (added)
-
trunk/.wordpress-org/readme/README.md (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/admin/class-emailchef-admin.php (modified) (4 diffs)
-
trunk/admin/js/emailchef-admin.js (modified) (3 diffs)
-
trunk/emailchef.php (modified) (1 diff)
-
trunk/scripts (added)
-
trunk/scripts/patch-version.sh (added)
Legend:
- Unmodified
- Added
- Removed
-
emailchef/tags/3.5.2/.wordpress-org/readme/README.md
r3407781 r3474342 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 3.5. 17 Stable tag: 3.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 = 3.5.2 = 45 * Security: added capability check and nonce verification on AJAX endpoints 46 * Fix: sanitize POST parameters in page_forms_ajax_form 47 * bump version to 3.5.2 44 48 45 49 = 3.5.1 = -
emailchef/tags/3.5.2/README.md
r3407781 r3474342 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 3.5. 17 Stable tag: 3.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 = 3.5.2 = 45 * Security: added capability check and nonce verification on AJAX endpoints 46 * Fix: sanitize POST parameters in page_forms_ajax_form 47 * bump version to 3.5.2 44 48 45 49 = 3.5.1 = -
emailchef/tags/3.5.2/admin/class-emailchef-admin.php
r3226665 r3474342 78 78 wp_enqueue_script( $this->plugin_name.'-admin' , plugin_dir_url( __FILE__ ) . 'js/emailchef-admin.js', array( 'jquery' ), $this->version, false ); 79 79 wp_localize_script($this->plugin_name.'-admin', 'emailchefI18n', [ 80 'disconnect_account_confirm' => __('Are you sure you want to disconnect your account?', 'emailchef') 80 'disconnect_account_confirm' => __('Are you sure you want to disconnect your account?', 'emailchef'), 81 'nonce' => wp_create_nonce('emailchef_ajax_nonce'), 81 82 ] ); 82 83 } … … 180 181 public function page_options_ajax_check_login() { 181 182 183 check_ajax_referer('emailchef_ajax_nonce', 'nonce'); 184 185 if ( ! current_user_can('manage_options') ) { 186 wp_send_json_error(null, 403); 187 } 188 182 189 $consumer_key = sanitize_text_field($_POST['consumer_key']); 183 190 $consumer_secret = sanitize_text_field($_POST['consumer_secret']); … … 200 207 public function page_options_ajax_disconnect() { 201 208 209 check_ajax_referer('emailchef_ajax_nonce', 'nonce'); 210 211 if ( ! current_user_can('manage_options') ) { 212 wp_send_json_error(null, 403); 213 } 214 202 215 delete_option('emailchef_settings'); 203 216 delete_option(Emailchef_Forms_Option::OPTION_NAME); … … 213 226 public function page_forms_ajax_form() { 214 227 global $wpdb; // this is how you get access to the database 228 229 check_ajax_referer('emailchef_ajax_nonce', 'nonce'); 230 231 if ( ! current_user_can('manage_options') ) { 232 wp_send_json_error(null, 403); 233 } 215 234 include_once plugin_dir_path( __FILE__ ) . '../includes/class-emailchef-forms-option.php'; 216 235 include_once plugin_dir_path( __FILE__ ) . '../includes/drivers/class-emailchef-drivers-forms.php'; -
emailchef/tags/3.5.2/admin/js/emailchef-admin.js
r3226665 r3474342 10 10 'action': 'emailchef_check_login', 11 11 'consumer_key': email, 12 'consumer_secret': password 12 'consumer_secret': password, 13 'nonce': emailchefI18n.nonce 13 14 }; 14 15 … … 26 27 27 28 var data = { 28 'action': 'emailchef_disconnect' 29 'action': 'emailchef_disconnect', 30 'nonce': emailchefI18n.nonce 29 31 }; 30 32 … … 112 114 'action': 'emailchef_forms_form', 113 115 'id': $(that).data('id'), 114 'driver': $(that).data('driver') 116 'driver': $(that).data('driver'), 117 'nonce': emailchefI18n.nonce 115 118 }; 116 119 -
emailchef/tags/3.5.2/emailchef.php
r3407781 r3474342 9 9 * Plugin URI: https://emailchef.com/ 10 10 * Description: Emailchef: the easiest way to create great newsletters. Sync form submissions automatically from Elementor, Contact Form 7, FSCF, and Jetpack. 11 * Version: 3.5. 111 * Version: 3.5.2 12 12 * Author: emailchef 13 13 * Author URI: https://www.emailchef.com -
emailchef/trunk/.wordpress-org/readme/README.md
r3407781 r3474342 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 3.5. 17 Stable tag: 3.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 = 3.5.2 = 45 * Security: added capability check and nonce verification on AJAX endpoints 46 * Fix: sanitize POST parameters in page_forms_ajax_form 47 * bump version to 3.5.2 44 48 45 49 = 3.5.1 = -
emailchef/trunk/README.md
r3407781 r3474342 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 3.5. 17 Stable tag: 3.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 = 3.5.2 = 45 * Security: added capability check and nonce verification on AJAX endpoints 46 * Fix: sanitize POST parameters in page_forms_ajax_form 47 * bump version to 3.5.2 44 48 45 49 = 3.5.1 = -
emailchef/trunk/admin/class-emailchef-admin.php
r3226665 r3474342 78 78 wp_enqueue_script( $this->plugin_name.'-admin' , plugin_dir_url( __FILE__ ) . 'js/emailchef-admin.js', array( 'jquery' ), $this->version, false ); 79 79 wp_localize_script($this->plugin_name.'-admin', 'emailchefI18n', [ 80 'disconnect_account_confirm' => __('Are you sure you want to disconnect your account?', 'emailchef') 80 'disconnect_account_confirm' => __('Are you sure you want to disconnect your account?', 'emailchef'), 81 'nonce' => wp_create_nonce('emailchef_ajax_nonce'), 81 82 ] ); 82 83 } … … 180 181 public function page_options_ajax_check_login() { 181 182 183 check_ajax_referer('emailchef_ajax_nonce', 'nonce'); 184 185 if ( ! current_user_can('manage_options') ) { 186 wp_send_json_error(null, 403); 187 } 188 182 189 $consumer_key = sanitize_text_field($_POST['consumer_key']); 183 190 $consumer_secret = sanitize_text_field($_POST['consumer_secret']); … … 200 207 public function page_options_ajax_disconnect() { 201 208 209 check_ajax_referer('emailchef_ajax_nonce', 'nonce'); 210 211 if ( ! current_user_can('manage_options') ) { 212 wp_send_json_error(null, 403); 213 } 214 202 215 delete_option('emailchef_settings'); 203 216 delete_option(Emailchef_Forms_Option::OPTION_NAME); … … 213 226 public function page_forms_ajax_form() { 214 227 global $wpdb; // this is how you get access to the database 228 229 check_ajax_referer('emailchef_ajax_nonce', 'nonce'); 230 231 if ( ! current_user_can('manage_options') ) { 232 wp_send_json_error(null, 403); 233 } 215 234 include_once plugin_dir_path( __FILE__ ) . '../includes/class-emailchef-forms-option.php'; 216 235 include_once plugin_dir_path( __FILE__ ) . '../includes/drivers/class-emailchef-drivers-forms.php'; -
emailchef/trunk/admin/js/emailchef-admin.js
r3226665 r3474342 10 10 'action': 'emailchef_check_login', 11 11 'consumer_key': email, 12 'consumer_secret': password 12 'consumer_secret': password, 13 'nonce': emailchefI18n.nonce 13 14 }; 14 15 … … 26 27 27 28 var data = { 28 'action': 'emailchef_disconnect' 29 'action': 'emailchef_disconnect', 30 'nonce': emailchefI18n.nonce 29 31 }; 30 32 … … 112 114 'action': 'emailchef_forms_form', 113 115 'id': $(that).data('id'), 114 'driver': $(that).data('driver') 116 'driver': $(that).data('driver'), 117 'nonce': emailchefI18n.nonce 115 118 }; 116 119 -
emailchef/trunk/emailchef.php
r3407781 r3474342 9 9 * Plugin URI: https://emailchef.com/ 10 10 * Description: Emailchef: the easiest way to create great newsletters. Sync form submissions automatically from Elementor, Contact Form 7, FSCF, and Jetpack. 11 * Version: 3.5. 111 * Version: 3.5.2 12 12 * Author: emailchef 13 13 * Author URI: https://www.emailchef.com
Note: See TracChangeset
for help on using the changeset viewer.