Version 1.0.7

This commit is contained in:
Jarek Rozanski 2022-12-17 20:38:51 +00:00
parent aee70c947b
commit 04b8a858b7
4 changed files with 12 additions and 7 deletions

View file

@ -6,7 +6,7 @@ Easily add [Wide Angle Analytics](https://wideangle.co) tracker script to your W
* Requires at least: 5.2
* Tested up to: 5.8.2
* Tested up to: 6.1.1
* Requires PHP: 7.2

View file

@ -2,9 +2,9 @@
Contributors: jrozanski,inputobjects
Tags: web analytics, tracking, web traffic, analytics, statistics, stats
Requires at least: 5.2
Tested up to: 5.8.2
Tested up to: 6.1.1
Requires PHP: 7.2
Stable tag: 1.0.6
Stable tag: 1.0.7
License: GPLv2
Easily add Wide Angle Analytics tracker script to your WordPress site. You can quickly configure your web analytics tracker script.
@ -61,6 +61,10 @@ We run a business around serving the needs of our customer. That's you.
You will find most of your answers in the [Knowledge Base](https://wideangle.co/documentation). Should you require further assistance, please [get in touch](https://wideangle.co/support) with our team.
== Changelog ==
V1.0.7
- Fix configuration of custom RegEx in the exclusion paths
- Test with WordPress 6.1.1
V1.0.6
- Support for ePrivacy Mode configuration.

View file

@ -86,8 +86,9 @@ class WideAngleHelpers {
$valueKey = "waa_exc_path_".$idx[1]."_value";
$sanitizedValue = trim(sanitize_text_field($request[$valueKey]));
if($sanitizedValue != null) {
if(filter_var($sanitizedValue, FILTER_VALIDATE_REGEXP)) {
$typedExclusion = "[" . $exclusionType . "]" . $sanitizedValue;
$asRegExp = "/" . wp_unslash($sanitizedValue) . "/";
if(@preg_match($asRegExp, null) === 0) {
$typedExclusion = "[" . $exclusionType . "]" . wp_unslash($sanitizedValue);
array_push($exclusions, $typedExclusion);
} else {
$typedExclusion = "[" . $exclusionType . "]" . filter_var($sanitizedValue, FILTER_SANITIZE_SPECIAL_CHARS);

View file

@ -5,7 +5,7 @@
Description: Easily enable and configure Wide Angle Analytics on your Wordpress site
Author: Wide Angle Analytics by Input Objects GmbH
Author URI: https://wideangle.co
Version: 1.0.6
Version: 1.0.7
Requires at least: 5.2
Requires PHP: 7.2
License: GPL v2