Email Subscribers & Newsletters - Version 3.5.14

Version Description

(15.10.2018) =

  • Fix: Improve prevention of spam signups
Download this release

Release Info

Developer Icegram
Plugin Icon 128x128 Email Subscribers & Newsletters
Version 3.5.14
Comparing to
See all releases

Code changes from version 3.5.13 to 3.5.14

changelog.txt CHANGED
@@ -4,6 +4,10 @@ Author : Icegram
4
  Author URI : https://www.icegram.com/
5
  License : GPLv3
6
 
 
 
 
 
7
  ***********************************************************Version 3.5.13***********************************************************
8
 
9
  * Fix: “Oops, an unexpected error occurred” while subscribing
4
  Author URI : https://www.icegram.com/
5
  License : GPLv3
6
 
7
+ ***********************************************************Version 3.5.14***********************************************************
8
+
9
+ * Fix: Improve prevention of spam signups
10
+
11
  ***********************************************************Version 3.5.13***********************************************************
12
 
13
  * Fix: “Oops, an unexpected error occurred” while subscribing
email-subscribers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Email Subscribers & Newsletters
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
6
- * Version: 3.5.13
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.9
3
  * Plugin Name: Email Subscribers & Newsletters
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.
6
+ * Version: 3.5.14
7
  * Author: Icegram
8
  * Author URI: https://www.icegram.com/
9
  * Requires at least: 3.9
job/es-subscribe.php CHANGED
@@ -23,13 +23,13 @@ class es_cls_job_subscribe {
23
  die();
24
  }
25
  //block address list
26
- $es_disposable_list = array('mail.ru');
27
- $es_domain = substr(strrchr(trim($_POST['esfpx_es_txt_email']) , "@"), 1); //extract domain name from email
28
- if(in_array($es_domain, $es_disposable_list)){
29
  $es_response['error'] = 'unexpected-error';
30
  echo json_encode($es_response);
31
  die();
32
  }
 
33
  if ( ( isset( $_POST['es'] ) ) && ( 'subscribe' === $_POST['es'] ) && ( isset( $_POST['action'] ) ) && ( 'es_add_subscriber' === $_POST['action'] ) && !empty( $_POST['esfpx_es-subscribe'] ) ) {
34
 
35
  foreach ($_POST as $key => $value) {
23
  die();
24
  }
25
  //block address list
26
+ $es_disposable_list = array('\.ru');
27
+ if(preg_match('/('.implode('|', $es_disposable_list).')$/i', trim($_POST['esfpx_es_txt_email']))){
 
28
  $es_response['error'] = 'unexpected-error';
29
  echo json_encode($es_response);
30
  die();
31
  }
32
+
33
  if ( ( isset( $_POST['es'] ) ) && ( 'subscribe' === $_POST['es'] ) && ( isset( $_POST['action'] ) ) && ( 'es_add_subscriber' === $_POST['action'] ) && !empty( $_POST['esfpx_es-subscribe'] ) ) {
34
 
35
  foreach ($_POST as $key => $value) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Author URI: https://www.icegram.com/
5
  Tags: subscription, newsletter, email marketing, post notification, email newsletter form, email signup, email widget, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.9
7
  Tested up to: 4.9.8
8
- Stable tag: 3.5.13
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses
11
 
@@ -342,6 +342,10 @@ Use our free plugin [Email Subscribers - Group Selector](https://wordpress.org/p
342
 
343
  == Changelog ==
344
 
 
 
 
 
345
  = 3.5.13 (05.10.2018) =
346
 
347
  * Fix: “Oops, an unexpected error occurred” while subscribing
5
  Tags: subscription, newsletter, email marketing, post notification, email newsletter form, email signup, email widget, newsletter signup, subscribe, subscription form, bulk emails, signup form, list builder, lead generation
6
  Requires at least: 3.9
7
  Tested up to: 4.9.8
8
+ Stable tag: 3.5.14
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses
11
 
342
 
343
  == Changelog ==
344
 
345
+ = 3.5.14 (15.10.2018) =
346
+
347
+ * Fix: Improve prevention of spam signups
348
+
349
  = 3.5.13 (05.10.2018) =
350
 
351
  * Fix: “Oops, an unexpected error occurred” while subscribing
subscribers/view-subscriber-show.php CHANGED
@@ -354,6 +354,10 @@ if (isset($_POST['frm_es_display']) && $_POST['frm_es_display'] == 'yes') {
354
  <option value="Unconfirmed" <?php if($search_sts=='Unconfirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
355
  <option value="Unsubscribed" <?php if($search_sts=='Unsubscribed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
356
  <option value="Single Opt In" <?php if($search_sts=='Single Opt In') { echo 'selected="selected"' ; } ?>><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
 
 
 
 
357
  </select>
358
  <select name="search_count_action" id="search_count_action" onchange="return _es_search_count_action(this.value)">
359
  <option value="1" <?php if($search_count=='1') { echo 'selected="selected"' ; } ?>><?php echo __( '1 to 500 emails', 'email-subscribers' ); ?></option>
354
  <option value="Unconfirmed" <?php if($search_sts=='Unconfirmed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unconfirmed', 'email-subscribers' ); ?></option>
355
  <option value="Unsubscribed" <?php if($search_sts=='Unsubscribed') { echo 'selected="selected"' ; } ?>><?php echo __( 'Unsubscribed', 'email-subscribers' ); ?></option>
356
  <option value="Single Opt In" <?php if($search_sts=='Single Opt In') { echo 'selected="selected"' ; } ?>><?php echo __( 'Single Opt In', 'email-subscribers' ); ?></option>
357
+ <?php
358
+ do_action('es_after_dropdown_status');
359
+ ?>
360
+
361
  </select>
362
  <select name="search_count_action" id="search_count_action" onchange="return _es_search_count_action(this.value)">
363
  <option value="1" <?php if($search_count=='1') { echo 'selected="selected"' ; } ?>><?php echo __( '1 to 500 emails', 'email-subscribers' ); ?></option>
widget/es-widget-page.js CHANGED
@@ -55,7 +55,7 @@ ES.prototype = {
55
  } else if ( response && response.success === 'already-exist' ) {
56
  es_msg_text = es_widget_page_notices.es_email_exists;
57
  } else if ( response && response.error === 'no-email-address' ) {
58
- es_msg_text = es_widget_notices.es_email_notice;
59
  } else if( response.success && response.success === 'subscribed-pending-doubleoptin' ) {
60
  es_msg_text = es_widget_page_notices.es_success_notice;
61
  jQuery(form)[0].reset();
55
  } else if ( response && response.success === 'already-exist' ) {
56
  es_msg_text = es_widget_page_notices.es_email_exists;
57
  } else if ( response && response.error === 'no-email-address' ) {
58
+ es_msg_text = es_widget_page_notices.es_email_notice;
59
  } else if( response.success && response.success === 'subscribed-pending-doubleoptin' ) {
60
  es_msg_text = es_widget_page_notices.es_success_notice;
61
  jQuery(form)[0].reset();