Skip to content
Snippets Groups Projects
Commit b9489d22 authored by Mathias Maaß's avatar Mathias Maaß Committed by André Lahmann
Browse files

refs #22788 [finc] adopt vufind fix for proper page title ecaping

parent 851d0a38
No related merge requests found
......@@ -16,6 +16,8 @@
// Pullrequest 2157 Ticket #20826
// Format the page title using the translation system:
$siteConfig = $this->config()->get('config')->Site;
// Disabled escaping of title temporarily so that we get it unescaped first:
$this->headTitle()->setAutoEscape(false);
$fullTitle = $this->translate(
'title_wrapper',
[
......@@ -24,6 +26,8 @@
'%%titleSeparator%%' => $siteConfig->titleSeparator ?? '::'
]
);
// Enable escaping again for proper output:
$this->headTitle()->setAutoEscape(true);
echo $this->headTitle($fullTitle, \Laminas\View\Helper\Placeholder\Container\AbstractContainer::SET);
// Set up OpenSearch link:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment