Google Analyticator - Version 6.4.9.6

Version Description

  • Resolve XSS vuln
Download this release

Release Info

Developer grimmdude
Plugin Icon 128x128 Google Analyticator
Version 6.4.9.6
Comparing to
See all releases

Code changes from version 6.4.9.5 to 6.4.9.6

Files changed (2) hide show
  1. google-analyticator.php +6 -6
  2. readme.txt +4 -1
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
- * Version: 6.4.9.5
5
  * Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
  * Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
  * Author: SumoMe
@@ -375,7 +375,7 @@ function ga_options_page() {
375
  if ($ga_admin_disable_DimentionIndex == '')
376
  $ga_admin_disable_DimentionIndex = ga_admin_disable_DimentionIndex_default;
377
 
378
- update_option(key_ga_admin_disable_DimentionIndex, wp_filter_kses( $ga_admin_disable_DimentionIndex ) );
379
 
380
  // Update the admin disable setting
381
  $ga_admin_disable = wp_filter_kses( $_POST[key_ga_admin_disable] );
@@ -410,7 +410,7 @@ function ga_options_page() {
410
 
411
  // Update the adsense key
412
  $ga_adsense = $_POST[key_ga_adsense];
413
- update_option(key_ga_adsense, wp_filter_kses( $ga_adsense ) );
414
 
415
  // Update the event tracking
416
  $ga_event = $_POST[key_ga_event];
@@ -428,11 +428,11 @@ function ga_options_page() {
428
  $ga_outbound_prefix = $_POST[key_ga_outbound_prefix];
429
  if ($ga_outbound_prefix == '')
430
  $ga_outbound_prefix = ga_outbound_prefix_default;
431
- update_option(key_ga_outbound_prefix, wp_filter_kses( $ga_outbound_prefix) );
432
 
433
  // Update the download tracking code
434
  $ga_downloads = $_POST[key_ga_downloads];
435
- update_option(key_ga_downloads, wp_filter_kses( $ga_downloads ) );
436
 
437
  // Update the Enhanced Link Attribution
438
  $ga_enhanced_link_attr = $_POST[key_ga_enhanced_link_attr];
@@ -444,7 +444,7 @@ function ga_options_page() {
444
  $ga_downloads_prefix = $_POST[key_ga_downloads_prefix];
445
  if ($ga_downloads_prefix == '')
446
  $ga_downloads_prefix = ga_downloads_prefix_default;
447
- update_option(key_ga_downloads_prefix, wp_filter_kses( $ga_downloads_prefix) );
448
 
449
  // Update the widgets option
450
  $ga_widgets = $_POST[key_ga_widgets];
1
  <?php
2
  /*
3
  * Plugin Name: Google Analyticator
4
+ * Version: 6.4.9.6
5
  * Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
  * Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
  * Author: SumoMe
375
  if ($ga_admin_disable_DimentionIndex == '')
376
  $ga_admin_disable_DimentionIndex = ga_admin_disable_DimentionIndex_default;
377
 
378
+ update_option(key_ga_admin_disable_DimentionIndex, sanitize_text_field( $ga_admin_disable_DimentionIndex ) );
379
 
380
  // Update the admin disable setting
381
  $ga_admin_disable = wp_filter_kses( $_POST[key_ga_admin_disable] );
410
 
411
  // Update the adsense key
412
  $ga_adsense = $_POST[key_ga_adsense];
413
+ update_option(key_ga_adsense, sanitize_text_field( $ga_adsense ) );
414
 
415
  // Update the event tracking
416
  $ga_event = $_POST[key_ga_event];
428
  $ga_outbound_prefix = $_POST[key_ga_outbound_prefix];
429
  if ($ga_outbound_prefix == '')
430
  $ga_outbound_prefix = ga_outbound_prefix_default;
431
+ update_option(key_ga_outbound_prefix, sanitize_text_field( $ga_outbound_prefix) );
432
 
433
  // Update the download tracking code
434
  $ga_downloads = $_POST[key_ga_downloads];
435
+ update_option(key_ga_downloads, sanitize_text_field( $ga_downloads ) );
436
 
437
  // Update the Enhanced Link Attribution
438
  $ga_enhanced_link_attr = $_POST[key_ga_enhanced_link_attr];
444
  $ga_downloads_prefix = $_POST[key_ga_downloads_prefix];
445
  if ($ga_downloads_prefix == '')
446
  $ga_downloads_prefix = ga_downloads_prefix_default;
447
+ update_option(key_ga_downloads_prefix, sanitize_text_field( $ga_downloads_prefix) );
448
 
449
  // Update the widgets option
450
  $ga_widgets = $_POST[key_ga_widgets];
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: noahkagan
3
  Tags: google analytics plugin, stats, statistics, google, analytics, dashboard, google analytics, tracking, widget, marketing,pageviews,visits, web stats, javascript
4
  Requires at least: 3.2
5
  Tested up to: 4.2.2
6
- Stable tag: 6.4.9.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -73,6 +73,9 @@ For any support issues, please use the official WordPress support forums.
73
 
74
 
75
  == Changelog ==
 
 
 
76
  = 6.4.9.5 =
77
  * Remove notice from Dashboard
78
 
3
  Tags: google analytics plugin, stats, statistics, google, analytics, dashboard, google analytics, tracking, widget, marketing,pageviews,visits, web stats, javascript
4
  Requires at least: 3.2
5
  Tested up to: 4.2.2
6
+ Stable tag: 6.4.9.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
73
 
74
 
75
  == Changelog ==
76
+ = 6.4.9.6 =
77
+ * Resolve XSS vuln
78
+
79
  = 6.4.9.5 =
80
  * Remove notice from Dashboard
81