Changeset 2889302 for wp-slimstat
- Timestamp:
- 03/29/2023 02:52:17 PM (3 years ago)
- Location:
- wp-slimstat
- Files:
-
- 6 edited
- 1 copied
-
tags/4.9.4 (copied) (copied from wp-slimstat/trunk)
-
tags/4.9.4/admin/view/wp-slimstat-db.php (modified) (1 diff)
-
tags/4.9.4/readme.txt (modified) (2 diffs)
-
tags/4.9.4/wp-slimstat.php (modified) (2 diffs)
-
trunk/admin/view/wp-slimstat-db.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-slimstat.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-slimstat/tags/4.9.4/admin/view/wp-slimstat-db.php
r2843920 r2889302 649 649 650 650 public static function count_records( $_column = 'id', $_where = '', $_use_date_filters = true ) { 651 // Validating the column 652 if (in_array($_column, ['id', 'ip', 'other_ip', 'username', 'email', 'country', 'location', 'city', 'referer', 'resource', 'searchterms', 'notes', 'visit_id', 'server_latency', 'page_performance', 'browser', 'browser_version', 'browser_type', 'platform', 'language', 'fingerprint', 'user_agent', 'resolution', 'screen_width', 'screen_height', 'content_type', 'category', 'author', 'content_id', 'outbound_resource', 'tz_offset', 'dt_out', 'dt']) === false) { 653 return; 654 } 655 651 656 $distinct_column = ( $_column != 'id' ) ? "DISTINCT $_column" : $_column; 652 657 $_where = self::get_combined_where( $_where, $_column, $_use_date_filters ); -
wp-slimstat/tags/4.9.4/readme.txt
r2869327 r2889302 5 5 Requires at least: 5.6 6 6 Requires PHP: 7.4+ 7 Tested up to: 6. 18 Stable tag: 4.9. 3.37 Tested up to: 6.2 8 Stable tag: 4.9.4 9 9 10 10 == Description == … … 50 50 51 51 == Changelog == 52 = 4.9.4 = 53 * [Fix] Hardened plugin security and sanitization of arguments 54 52 55 = 4.9.3.3 = 53 56 * [Fix] Disabled shortcode's filtering WHERE statement and make security harder. -
wp-slimstat/tags/4.9.4/wp-slimstat.php
r2869327 r2889302 4 4 Plugin URI: https://wp-slimstat.com/ 5 5 Description: The leading web analytics plugin for WordPress 6 Version: 4.9. 3.36 Version: 4.9.4 7 7 Author: Jason Crouse, VeronaLabs 8 8 Text Domain: wp-slimstat … … 735 735 */ 736 736 public static function slimstat_shortcode( $_attributes = '', $_content = '' ) { 737 extract(shortcode_atts( array(737 shortcode_atts( array( 738 738 'f' => '', // recent, popular, count, widget 739 739 'w' => '', // column to use (for recent, popular and count) or widget to use 740 740 's' => ' ', // separator 741 741 'o' => 0 // offset for counters 742 ), $_attributes ) ); 742 ), $_attributes ); 743 744 $f = isset($_attributes['f']) ? $_attributes['f'] : ''; 745 $w = isset($_attributes['w']) ? $_attributes['w'] : ''; 746 $s = isset($_attributes['s']) ? $_attributes['s'] : ''; 747 $o = isset($_attributes['o']) ? $_attributes['o'] : 0; 743 748 744 749 $output = $where = $as_column = ''; -
wp-slimstat/trunk/admin/view/wp-slimstat-db.php
r2843920 r2889302 649 649 650 650 public static function count_records( $_column = 'id', $_where = '', $_use_date_filters = true ) { 651 // Validating the column 652 if (in_array($_column, ['id', 'ip', 'other_ip', 'username', 'email', 'country', 'location', 'city', 'referer', 'resource', 'searchterms', 'notes', 'visit_id', 'server_latency', 'page_performance', 'browser', 'browser_version', 'browser_type', 'platform', 'language', 'fingerprint', 'user_agent', 'resolution', 'screen_width', 'screen_height', 'content_type', 'category', 'author', 'content_id', 'outbound_resource', 'tz_offset', 'dt_out', 'dt']) === false) { 653 return; 654 } 655 651 656 $distinct_column = ( $_column != 'id' ) ? "DISTINCT $_column" : $_column; 652 657 $_where = self::get_combined_where( $_where, $_column, $_use_date_filters ); -
wp-slimstat/trunk/readme.txt
r2869327 r2889302 5 5 Requires at least: 5.6 6 6 Requires PHP: 7.4+ 7 Tested up to: 6. 18 Stable tag: 4.9. 3.37 Tested up to: 6.2 8 Stable tag: 4.9.4 9 9 10 10 == Description == … … 50 50 51 51 == Changelog == 52 = 4.9.4 = 53 * [Fix] Hardened plugin security and sanitization of arguments 54 52 55 = 4.9.3.3 = 53 56 * [Fix] Disabled shortcode's filtering WHERE statement and make security harder. -
wp-slimstat/trunk/wp-slimstat.php
r2869327 r2889302 4 4 Plugin URI: https://wp-slimstat.com/ 5 5 Description: The leading web analytics plugin for WordPress 6 Version: 4.9. 3.36 Version: 4.9.4 7 7 Author: Jason Crouse, VeronaLabs 8 8 Text Domain: wp-slimstat … … 735 735 */ 736 736 public static function slimstat_shortcode( $_attributes = '', $_content = '' ) { 737 extract(shortcode_atts( array(737 shortcode_atts( array( 738 738 'f' => '', // recent, popular, count, widget 739 739 'w' => '', // column to use (for recent, popular and count) or widget to use 740 740 's' => ' ', // separator 741 741 'o' => 0 // offset for counters 742 ), $_attributes ) ); 742 ), $_attributes ); 743 744 $f = isset($_attributes['f']) ? $_attributes['f'] : ''; 745 $w = isset($_attributes['w']) ? $_attributes['w'] : ''; 746 $s = isset($_attributes['s']) ? $_attributes['s'] : ''; 747 $o = isset($_attributes['o']) ? $_attributes['o'] : 0; 743 748 744 749 $output = $where = $as_column = '';
Note: See TracChangeset
for help on using the changeset viewer.