Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo authored Jul 26, 2024
1 parent cff5f47 commit 1d57470
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controller/CookiebarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public function blockAction(Request $request, $locale, $id)
throw new PageNotFoundException();
}

if(!Validator::isLocale($locale))
{
return new Response('The URL must contain a valid locale.', Response::HTTP_BAD_REQUEST);
}

$strUrl = $request->get('redirect');

// Protect against XSS attacks
Expand Down

0 comments on commit 1d57470

Please sign in to comment.