Skip to content

Commit

Permalink
Merge pull request #64 from Firesphere/Firesphere-patch-1
Browse files Browse the repository at this point in the history
report-uri should not be encoded at all
  • Loading branch information
paragonie-security authored Mar 26, 2023
2 parents 63bb5f1 + 7d9c8dc commit 85fd7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSPBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function compile(): string
if (!is_string($this->policies['report-uri'])) {
throw new TypeError('report-uri policy somehow not a string');
}
$compiled [] = 'report-uri ' . $this->enc($this->policies['report-uri'], 'url') . '; ';
$compiled [] = 'report-uri ' . $this->policies['report-uri'] . '; ';
}
if (!empty($this->policies['report-to'])) {
if (!is_string($this->policies['report-to'])) {
Expand Down

0 comments on commit 85fd7c7

Please sign in to comment.