Count per Day - Version 3.2.3

Version Description

  • Bugfix: security fix, XSS in search words, thanks to http://www.n0lab.com/?p=163
Download this release

Release Info

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

Code changes from version 3.2.2 to 3.2.3

Files changed (3) hide show
  1. counter-core.php +1 -0
  2. counter.php +2 -2
  3. readme.txt +4 -1
counter-core.php CHANGED
@@ -1459,6 +1459,7 @@ function getSearchString()
1459
  foreach ($keys as $key)
1460
  if (isset($query[$key]))
1461
  $search = str_ireplace(array('/search?q=','/images?q='), '', $query[$key]);
 
1462
  if (empty($search) || is_numeric($search)) // non WordPress postID
1463
  $search = '';
1464
  return trim($search);
1459
  foreach ($keys as $key)
1460
  if (isset($query[$key]))
1461
  $search = str_ireplace(array('/search?q=','/images?q='), '', $query[$key]);
1462
+ $search = strip_tags($search);
1463
  if (empty($search) || is_numeric($search)) // non WordPress postID
1464
  $search = '';
1465
  return trim($search);
counter.php CHANGED
@@ -3,14 +3,14 @@
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.2.2
7
  License: Postcardware
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
10
  */
11
 
12
  $cpd_dir_name = 'count-per-day';
13
- $cpd_version = '3.2.2';
14
 
15
  $cpd_path = str_replace('/', DIRECTORY_SEPARATOR, ABSPATH.PLUGINDIR.'/'.$cpd_dir_name.'/');
16
  include_once($cpd_path.'counter-core.php');
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.2.3
7
  License: Postcardware
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
10
  */
11
 
12
  $cpd_dir_name = 'count-per-day';
13
+ $cpd_version = '3.2.3';
14
 
15
  $cpd_path = str_replace('/', DIRECTORY_SEPARATOR, ABSPATH.PLUGINDIR.'/'.$cpd_dir_name.'/');
16
  include_once($cpd_path.'counter-core.php');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Tom Braider
3
  Tags: counter, count, posts, visits, reads, dashboard, widget, shortcode
4
  Requires at least: 3.0
5
  Tested up to: 3.4.1
6
- Stable tag: 3.2.2
7
  License: Postcardware :)
8
  Donate link: http://www.tomsdimension.de/postcards
9
 
@@ -292,6 +292,9 @@ to check if plugin is activated.
292
 
293
  == Changelog ==
294
 
 
 
 
295
  = 3.2.2 =
296
  + New: counter column in custom post lists
297
  + Bugfix: errors in search words
3
  Tags: counter, count, posts, visits, reads, dashboard, widget, shortcode
4
  Requires at least: 3.0
5
  Tested up to: 3.4.1
6
+ Stable tag: 3.2.3
7
  License: Postcardware :)
8
  Donate link: http://www.tomsdimension.de/postcards
9
 
292
 
293
  == Changelog ==
294
 
295
+ = 3.2.3 =
296
+ + Bugfix: security fix, XSS in search words, thanks to http://www.n0lab.com/?p=163
297
+
298
  = 3.2.2 =
299
  + New: counter column in custom post lists
300
  + Bugfix: errors in search words