Skip to content

Commit

Permalink
Merge pull request #24 from MindscapeHQ/user-cookie-feedback
Browse files Browse the repository at this point in the history
#23 Prevent rgisanonymous cookie with disabled user tracking
  • Loading branch information
BenjaminHarding authored Mar 19, 2018
2 parents c7addf8 + fac0f52 commit b5f3399
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Finally, if you so desire you should be able to visit the root network site, act

Changelog
---------

- 1.9.1: Don't set user cookie when user tracking is disabled.
- 1.9.0: Add async sending option to dashboard; Bump Raygun4JS dependency to v2.8.5; Bump Raygun4PHP dependency to v1.8.2
- 1.8.3: Fix XSS vulnerability in settings; Replace the iframe with a link to the Raygun dashboard
- 1.8.2: Bump Raygun4JS version to v2.6.2
Expand Down
4 changes: 2 additions & 2 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function rg4wp_404_handler()
!rg4wp_isIgnoredDomain() && is_404() && get_option('rg4wp_apikey'))
{
require_once dirname(__FILE__).'/external/raygun4php/src/Raygun4php/RaygunClient.php';
$client = new Raygun4php\RaygunClient(get_option('rg4wp_apikey'), rg4wp_useAsyncSending());
$client = new Raygun4php\RaygunClient(get_option('rg4wp_apikey'), rg4wp_useAsyncSending(), false, !get_option('rg4wp_usertracking'));
$tags = array_map('trim', explode(',', get_option('rg4wp_tags')));

if (!is_array($tags)) {
Expand All @@ -166,7 +166,7 @@ function rg4wp_404_handler()
{

require_once dirname(__FILE__).'/external/raygun4php/src/Raygun4php/RaygunClient.php';
$client = new Raygun4php\RaygunClient(get_option('rg4wp_apikey'), rg4wp_useAsyncSending());
$client = new Raygun4php\RaygunClient(get_option('rg4wp_apikey'), rg4wp_useAsyncSending(), false, !get_option('rg4wp_usertracking'));
$tags = explode(',', get_option('rg4wp_tags'));

if (!is_array($tags)) {
Expand Down
2 changes: 1 addition & 1 deletion raygun4wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Raygun4WP
Plugin URI: http://github.com/mindscapehq/raygun4wordpress
Description: Exceptional error, performance, user tracking and more with Raygun.com. This service integrates Raygun Crash Reporting which lets you monitor your site's health with beautiful graphs and comprehensive reports, so you are always aware of any points of failure. With Raygun's Real User Monitoring you can monitor the performance of every individual user session, so you can discover and fix fundamental bottlenecks that affect your end user experience. This plugin has a simple one-minute, no-code-required installation.
Version: 1.9.0.0
Version: 1.9.1.0
Author: Mindscape
Author URI: http://raygun.com
License: MIT
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://raygun.com
Tags: error reporting, raygun, exception, 404, crash reporting, JavaScript, PHP, error monitoring, error tracking, bug tracking, real user monitoring, pulse
Requires at least: 3.4
Tested up to: 4.9.4
Stable tag: 1.9.0.0
Stable tag: 1.9.1.0
License: MIT
License URI: http://opensource.org/licenses/MIT

Expand Down Expand Up @@ -80,6 +80,9 @@ If you enable this feature the currently logged in user's email address, first n

== Changelog ==

= 1.9.1 =
* Don't set user cookie when user tracking is disabled

= 1.9.0 =

* Add async sending option to dashboard
Expand Down

0 comments on commit b5f3399

Please sign in to comment.