Skip to content

Commit

Permalink
Remove ilogger, is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKampf committed Aug 7, 2023
1 parent 1bffae9 commit e76ad68
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Listener/CSPListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ public function handle(Event $event): void {
//This loading from the config the trusted urls
$marketing_config = $this->iConfig->getSystemValue("nmc_marketing");

//This is the user agent
$userAgent = $_SERVER['HTTP_USER_AGENT'];

$policy = new EmptyContentSecurityPolicy();
$policy->useStrictDynamic(true);

Expand All @@ -46,7 +43,7 @@ public function handle(Event $event): void {
}

//This is the exception for specific user agents
if ($this->request->getRequestUri() === '/' || $this->request->getRequestUri() === '/login') {
if ($this->request->getPathInfo() === '/' || $this->request->getPathInfo() === '/login') {
$policy->addAllowedScriptDomain("'unsafe-inline'");
}

Expand Down

0 comments on commit e76ad68

Please sign in to comment.