Skip to content

Commit

Permalink
Change URL encoding
Browse files Browse the repository at this point in the history
* see #263
  • Loading branch information
zoglo committed Jan 23, 2025
1 parent 31ff406 commit 80fbc20
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 @@ -71,7 +72,7 @@ public function blockAction(Request $request, $locale, $id)
}

// 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 80fbc20

Please sign in to comment.