Skip to content

Commit

Permalink
fix report uri in xss protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Hrdlička authored and Lukáš Hrdlička committed Jun 30, 2021
1 parent 93616c4 commit a542829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/headers/XssProtection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private function getXssProtectionReportPart(): string
{
$report = '';
if (!empty($this->reportUri)) {
$report = ' report=' . $this->reportUri . '/r/d/xss/enforce';
$report = ' report=' . $this->reportUri;
}

return $report;
Expand Down
2 changes: 1 addition & 1 deletion tests/headers/XssProtectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class XssProtectionTest extends TestCase

public function setUp(): void
{
$this->header = new XssProtection(true, 'example.com');
$this->header = new XssProtection(true, 'example.com/r/d/xss/enforce');
}

public function testGetValue(): void
Expand Down

0 comments on commit a542829

Please sign in to comment.