Skip to content

Commit

Permalink
remove extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Aug 11, 2019
1 parent 749b618 commit 46da8d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/system/httpheaders/httpheaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function applyHashesToCspRule(): void

if (!empty($scriptHashes))
{
$newHeaderValue = str_replace('{script-hashes}', ' ' . implode(' ', $scriptHashes), $newHeaderValue);
$newHeaderValue = str_replace('{script-hashes}', implode(' ', $scriptHashes), $newHeaderValue);
}
else
{
Expand All @@ -219,7 +219,7 @@ public function applyHashesToCspRule(): void

if (!empty($styleHashes))
{
$newHeaderValue = str_replace('{style-hashes}', ' ' . implode(' ', $styleHashes), $newHeaderValue);
$newHeaderValue = str_replace('{style-hashes}', implode(' ', $styleHashes), $newHeaderValue);
}
else
{
Expand Down

0 comments on commit 46da8d3

Please sign in to comment.