Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Jan 23, 2025
2 parents eddb505 + 80fbc20 commit 83a0bdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/CookiebarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Contao\CoreBundle\Exception\PageNotFoundException;
use Contao\FrontendTemplate;
use Contao\Input;
use Contao\StringUtil;
use Contao\System;
use Contao\Validator;
use Oveleon\ContaoCookiebar\Cookiebar;
Expand Down Expand Up @@ -58,7 +59,7 @@ public function block(Request $request, string $locale, int $id): Response
}

// Protect against XSS attacks
$strUrl = Input::get('redirect');
$strUrl = StringUtil::stripInsertTags(StringUtil::specialchars($request->get('redirect')));

if(!Validator::isUrl($strUrl))
{
Expand Down

0 comments on commit 83a0bdf

Please sign in to comment.