Skip to content

Commit edb93ba

Browse files
Updating the referrer-spam-blacklist dependency
1 parent e39f5ac commit edb93ba

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"type": "library",
1515
"license": "MIT",
1616
"require": {
17-
"php": ">=7.0",
18-
"arcanedev/support": "~4.2.0",
19-
"piwik/referrer-spam-blacklist": "~1.0"
17+
"php": ">=7.0",
18+
"arcanedev/support": "~4.2.0",
19+
"matomo/referrer-spam-blacklist": "~1.0"
2020
},
2121
"require-dev": {
2222
"orchestra/testbench": "~3.5.0",

config/spam-blocker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| The blacklisted spammers source file.
99
*/
1010

11-
'source' => base_path('vendor/piwik/referrer-spam-blacklist/spammers.txt'),
11+
'source' => base_path('vendor/matomo/referrer-spam-blacklist/spammers.txt'),
1212

1313
/* -----------------------------------------------------------------
1414
| Include

tests/Http/Middleware/BlockReferralSpamTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,4 @@ public function it_must_block_spammer_request_with_subdomain()
4444

4545
$response->assertStatus(401);
4646
}
47-
48-
/** @test */
49-
public function it_must_block_spammer_request_with_subdomain_and_not_utf8()
50-
{
51-
$response = $this->get('/', [
52-
'HTTP_REFERER' => 'http://с.новым.годом.рф',
53-
]);
54-
55-
$response->assertStatus(401);
56-
}
5747
}

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function getEnvironmentSetUp($app)
5656
// Setup default database to use sqlite :memory:
5757
$config->set(
5858
'spam-blocker.source',
59-
__DIR__ . '/../vendor/piwik/referrer-spam-blacklist/spammers.txt'
59+
__DIR__ . '/../vendor/matomo/referrer-spam-blacklist/spammers.txt'
6060
);
6161

6262
$this->registerRoutes($app);

0 commit comments

Comments
 (0)