Skip to content

Commit

Permalink
By default, use the RAW non-anonimised ip when geo locating IPs.
Browse files Browse the repository at this point in the history
This prevents wrong geo location by default and should make users less confused.
  • Loading branch information
mattab committed Feb 18, 2015
1 parent b1e99c6 commit 4e18d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/PrivacyManager/Config.php
Expand Up @@ -27,7 +27,7 @@
class Config
{
private $properties = array(
'useAnonymizedIpForVisitEnrichment' => array('type' => 'boolean', 'default' => true),
'useAnonymizedIpForVisitEnrichment' => array('type' => 'boolean', 'default' => false),
'ipAddressMaskLength' => array('type' => 'integer', 'default' => 2),
'doNotTrackEnabled' => array('type' => 'boolean', 'default' => true),
'ipAnonymizerEnabled' => array('type' => 'boolean', 'default' => true),
Expand Down
Expand Up @@ -31,15 +31,15 @@ public function setUp()

public function test_useAnonymizedIpForVisitEnrichment()
{
$this->assertTrue($this->config->useAnonymizedIpForVisitEnrichment);

$this->config->useAnonymizedIpForVisitEnrichment = false;

$this->assertFalse($this->config->useAnonymizedIpForVisitEnrichment);

$this->config->useAnonymizedIpForVisitEnrichment = true;

$this->assertTrue($this->config->useAnonymizedIpForVisitEnrichment);

$this->config->useAnonymizedIpForVisitEnrichment = false;

$this->assertFalse($this->config->useAnonymizedIpForVisitEnrichment);
}

public function test_doNotTrackEnabled()
Expand Down Expand Up @@ -82,7 +82,7 @@ public function test_setTrackerCacheContent()
'PrivacyManager.ipAddressMaskLength' => 2,
'PrivacyManager.ipAnonymizerEnabled' => true,
'PrivacyManager.doNotTrackEnabled' => true,
'PrivacyManager.useAnonymizedIpForVisitEnrichment' => true,
'PrivacyManager.useAnonymizedIpForVisitEnrichment' => false,
);

$this->assertEquals($expected, $content);
Expand Down

1 comment on commit 4e18d76

@mattab
Copy link
Member Author

@mattab mattab commented on 4e18d76 Feb 18, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #7229

Please sign in to comment.