Count per Day - Version 3.5.6

Version Description

  • Bugfix: check/block stored bad referrers
Download this release

Release Info

Developer Tom Braider
Plugin Icon 128x128 Count per Day
Version 3.5.6
Comparing to
See all releases

Code changes from version 3.5.5 to 3.5.6

Files changed (2) hide show
  1. counter.php +3 -2
  2. readme.txt +5 -2
counter.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Count Per Day
4
  Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
5
  Description: Counter, shows reads and visitors per page; today, yesterday, last week, last months ... on dashboard, per shortcode or in widget.
6
- Version: 3.5.5
7
  License: Postcardware
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
@@ -13,7 +13,7 @@ if (!defined('ABSPATH'))
13
  exit;
14
 
15
  $cpd_dir_name = 'count-per-day';
16
- $cpd_version = '3.5.5';
17
 
18
  if (strpos($_SERVER['SERVER_NAME'], '.test'))
19
  $cpd_path = str_replace('/', DIRECTORY_SEPARATOR, ABSPATH.PLUGINDIR.'/'.$cpd_dir_name.'/');
@@ -140,6 +140,7 @@ function count( $x, $page = 'x' )
140
  $client = substr( $client, 0, $this->options['fieldlen'] );
141
 
142
  $referer = ($this->options['referers'] && isset($_SERVER['HTTP_REFERER'])) ? wp_strip_all_tags($_SERVER['HTTP_REFERER']) : '';
 
143
 
144
  if (filter_var($referer, FILTER_VALIDATE_URL))
145
  {
3
  Plugin Name: Count Per Day
4
  Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
5
  Description: Counter, shows reads and visitors per page; today, yesterday, last week, last months ... on dashboard, per shortcode or in widget.
6
+ Version: 3.5.6
7
  License: Postcardware
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
13
  exit;
14
 
15
  $cpd_dir_name = 'count-per-day';
16
+ $cpd_version = '3.5.6';
17
 
18
  if (strpos($_SERVER['SERVER_NAME'], '.test'))
19
  $cpd_path = str_replace('/', DIRECTORY_SEPARATOR, ABSPATH.PLUGINDIR.'/'.$cpd_dir_name.'/');
140
  $client = substr( $client, 0, $this->options['fieldlen'] );
141
 
142
  $referer = ($this->options['referers'] && isset($_SERVER['HTTP_REFERER'])) ? wp_strip_all_tags($_SERVER['HTTP_REFERER']) : '';
143
+ $referer = esc_url($referer);
144
 
145
  if (filter_var($referer, FILTER_VALIDATE_URL))
146
  {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Tom Braider
3
  Tags: counter, count, posts, visits, reads, dashboard, widget, shortcode
4
  Requires at least: 3.0
5
  Tested up to: 4.7
6
- Stable tag: 3.5.5
7
- License: Postcardware :)
8
  Donate link: http://www.tomsdimension.de/postcards
9
 
10
  Visit Counter, shows reads and visitors per page, visitors today, yesterday, last week, last months and other statistics.
@@ -306,6 +306,9 @@ show( $before, $after, $show, $count, $page )'
306
 
307
  == Changelog ==
308
 
 
 
 
309
  = 3.5.5 =
310
  + Bugfix: security fixes in export, referrer and mass bot functions
311
 
3
  Tags: counter, count, posts, visits, reads, dashboard, widget, shortcode
4
  Requires at least: 3.0
5
  Tested up to: 4.7
6
+ Stable tag: 3.5.6
7
+ License: GPLv2
8
  Donate link: http://www.tomsdimension.de/postcards
9
 
10
  Visit Counter, shows reads and visitors per page, visitors today, yesterday, last week, last months and other statistics.
306
 
307
  == Changelog ==
308
 
309
+ = 3.5.6 =
310
+ + Bugfix: check/block stored bad referrers
311
+
312
  = 3.5.5 =
313
  + Bugfix: security fixes in export, referrer and mass bot functions
314