WP Subscribe - Version 1.2.16

Version Description

  • More security hardening
Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Subscribe
Version 1.2.16
Comparing to
See all releases

Code changes from version 1.2.15 to 1.2.16

includes/subscription/class-wps-aweber.php CHANGED
@@ -136,7 +136,8 @@ class WPS_Subscription_Aweber extends WPS_Subscription_Base {
136
  $params = array(
137
  'name' => $name,
138
  'email' => $identity['email'],
139
- 'ip_address' => $_SERVER['REMOTE_ADDR'],
 
140
  'ad_tracking' => 'mythemeshop'
141
  );
142
 
@@ -149,16 +150,16 @@ class WPS_Subscription_Aweber extends WPS_Subscription_Base {
149
  catch( Exception $e ) {
150
 
151
  // already waiting confirmation:
152
- // "Subscriber already subscribed and has not confirmed."
153
- if ( strpos( $e->getMessage(), 'has not confirmed' ) ) {
154
- return array( 'status' => 'pending' );
155
- }
156
-
157
- // already waiting confirmation:
158
- // "Subscriber already subscribed."
159
- if ( strpos( $e->getMessage(), 'already subscribed' ) ) {
160
- return array( 'status' => 'pending' );
161
- }
162
 
163
  throw new Exception ( '[subscribe]: ' . $e->getMessage() );
164
  }
136
  $params = array(
137
  'name' => $name,
138
  'email' => $identity['email'],
139
+ // Sanitize IP:
140
+ 'ip_address' => filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP ),
141
  'ad_tracking' => 'mythemeshop'
142
  );
143
 
150
  catch( Exception $e ) {
151
 
152
  // already waiting confirmation:
153
+ // "Subscriber already subscribed and has not confirmed."
154
+ if ( strpos( $e->getMessage(), 'has not confirmed' ) ) {
155
+ return array( 'status' => 'pending' );
156
+ }
157
+
158
+ // already waiting confirmation:
159
+ // "Subscriber already subscribed."
160
+ if ( strpos( $e->getMessage(), 'already subscribed' ) ) {
161
+ return array( 'status' => 'pending' );
162
+ }
163
 
164
  throw new Exception ( '[subscribe]: ' . $e->getMessage() );
165
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Creator's website link: http://mythemeshop.com/plugins/wp-subscribe/
4
  Tags: subscribe, subscription, subscription box, newsletter, subscribe widget, mailchimp, aweber, feedburner,
5
  Requires at least: 4.0
6
  Tested up to: 5.9.3
7
- Stable tag: 1.2.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,6 +82,9 @@ Please disable all plugins and check if plugin is working properly. Then you can
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 1.2.15 =
86
  * Security hardening
87
 
4
  Tags: subscribe, subscription, subscription box, newsletter, subscribe widget, mailchimp, aweber, feedburner,
5
  Requires at least: 4.0
6
  Tested up to: 5.9.3
7
+ Stable tag: 1.2.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
 
83
  == Changelog ==
84
 
85
+ = 1.2.16 =
86
+ * More security hardening
87
+
88
  = 1.2.15 =
89
  * Security hardening
90
 
wp-subscribe.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Subscribe
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/
5
  * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
6
- * Version: 1.2.15
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-subscribe
@@ -27,7 +27,7 @@ if( ! class_exists('MTS_WP_Subscribe') ) :
27
  * Plugin Version
28
  * @var string
29
  */
30
- private $version = '1.2.15';
31
 
32
  /**
33
  * Hold an instance of MTS_WP_Subscribe class
3
  * Plugin Name: WP Subscribe
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-subscribe/
5
  * Description: WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.
6
+ * Version: 1.2.16
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-subscribe
27
  * Plugin Version
28
  * @var string
29
  */
30
+ private $version = '1.2.16';
31
 
32
  /**
33
  * Hold an instance of MTS_WP_Subscribe class