Skip to content

Commit

Permalink
Merge pull request from GHSA-m8x6-6r63-qvj2
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed May 5, 2022
1 parent 7f4e84d commit 1992068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-bundle/src/Resources/contao/pages/PageRegular.php
Expand Up @@ -230,12 +230,12 @@ protected function prepare($objPage)
$this->Template->pageTitle = str_replace('[-]', '', $this->Template->pageTitle);

// Meta robots tag
$this->Template->robots = $headBag->getMetaRobots();
$this->Template->robots = htmlspecialchars($headBag->getMetaRobots());

// Canonical
if ($objPage->enableCanonical)
{
$this->Template->canonical = $headBag->getCanonicalUriForRequest($request);
$this->Template->canonical = htmlspecialchars($headBag->getCanonicalUriForRequest($request));
}

// Fall back to the default title tag
Expand Down

0 comments on commit 1992068

Please sign in to comment.