ThirstyAffiliates Affiliate Link Manager - Version 3.10.8

Version Description

  • Bug Fix: Security fixes
Download this release

Release Info

Developer caseproof
Plugin Icon 128x128 ThirstyAffiliates Affiliate Link Manager
Version 3.10.8
Comparing to
See all releases

Code changes from version 3.10.7 to 3.10.8

Helpers/Plugin_Constants.php CHANGED
@@ -27,7 +27,7 @@ class Plugin_Constants {
27
  // Plugin configuration constants
28
  const TOKEN = 'ta';
29
  const INSTALLED_VERSION = 'ta_installed_version';
30
- const VERSION = '3.10.7';
31
  const TEXT_DOMAIN = 'thirstyaffiliates';
32
  const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
33
  const META_DATA_PREFIX = '_ta_';
27
  // Plugin configuration constants
28
  const TOKEN = 'ta';
29
  const INSTALLED_VERSION = 'ta_installed_version';
30
+ const VERSION = '3.10.8';
31
  const TEXT_DOMAIN = 'thirstyaffiliates';
32
  const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
33
  const META_DATA_PREFIX = '_ta_';
Models/Affiliate_Links_CPT.php CHANGED
@@ -753,7 +753,7 @@ class Affiliate_Links_CPT implements Model_Interface , Initiable_Interface {
753
 
754
  $post_type = get_post_type();
755
  if ( !$post_type && isset( $_GET[ 'post_type' ] ) )
756
- $post_type = $_GET[ 'post_type' ]; // phpcs:ignore WordPress.Security
757
 
758
  if ( ! is_admin() || $post_type !== Plugin_Constants::AFFILIATE_LINKS_CPT )
759
  return;
753
 
754
  $post_type = get_post_type();
755
  if ( !$post_type && isset( $_GET[ 'post_type' ] ) )
756
+ $post_type = sanitize_text_field( wp_unslash( $_GET[ 'post_type' ] ) );
757
 
758
  if ( ! is_admin() || $post_type !== Plugin_Constants::AFFILIATE_LINKS_CPT )
759
  return;
Models/Link_Fixer.php CHANGED
@@ -243,7 +243,15 @@ class Link_Fixer implements Model_Interface , Initiable_Interface {
243
  $response = array( 'status' => 'fail' , 'error_msg' => __( 'Invalid AJAX call' , 'thirstyaffiliates' ) );
244
  else {
245
 
246
- $links = $_POST[ 'hrefs' ]; // phpcs:ignore
 
 
 
 
 
 
 
 
247
  $post_id = isset( $_POST[ 'post_id' ] ) ? intval( $_POST[ 'post_id' ] ) : 0;
248
  $response = array(
249
  'status' => 'success',
243
  $response = array( 'status' => 'fail' , 'error_msg' => __( 'Invalid AJAX call' , 'thirstyaffiliates' ) );
244
  else {
245
 
246
+ $links = $_POST['hrefs']; // phpcs:ignore WordPress.Security
247
+ foreach ( $links as $key => $val ) {
248
+ if( is_array( $val ) ){
249
+ $links[ $key ] = array_map( 'sanitize_text_field', $val );
250
+ }else{
251
+ $links[ $key ] = sanitize_text_field( $val );
252
+ }
253
+ }
254
+
255
  $post_id = isset( $_POST[ 'post_id' ] ) ? intval( $_POST[ 'post_id' ] ) : 0;
256
  $response = array(
257
  'status' => 'success',
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: affiliate, link, affiliate link management, link cloaker, link redirect, s
5
  Requires at least: 5.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.9
8
- Stable tag: 3.10.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -159,6 +159,9 @@ See our [Knowledge Base](https://thirstyaffiliates.com/knowledge-base/?utm_sourc
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 3.10.7 =
163
  * Bug Fix: Fatal error on PHP versions lower than 7.3
164
 
5
  Requires at least: 5.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.9
8
+ Stable tag: 3.10.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
159
 
160
  == Changelog ==
161
 
162
+ = 3.10.8 =
163
+ * Bug Fix: Security fixes
164
+
165
  = 3.10.7 =
166
  * Bug Fix: Fatal error on PHP versions lower than 7.3
167
 
thirstyaffiliates.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ThirstyAffiliates
4
  * Plugin URI: http://thirstyaffiliates.com/
5
  * Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
6
- * Version: 3.10.7
7
  * Author: Caseproof
8
  * Author URI: https://caseproof.com/
9
  * Requires at least: 5.0
3
  * Plugin Name: ThirstyAffiliates
4
  * Plugin URI: http://thirstyaffiliates.com/
5
  * Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
6
+ * Version: 3.10.8
7
  * Author: Caseproof
8
  * Author URI: https://caseproof.com/
9
  * Requires at least: 5.0