From c3cbda9caa104972993dba0eeb6d3738dd141c88 Mon Sep 17 00:00:00 2001 From: wopsononock <16406238+wopsononock@users.noreply.github.com> Date: Fri, 4 Sep 2026 17:47:00 -0400 Subject: [PATCH] Sanitization changes --- templates/blockDoi.tpl | 4 ++-- templates/blockReferences.tpl | 4 ++-- templates/displayInline.tpl | 6 +++--- version.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/blockDoi.tpl b/templates/blockDoi.tpl index 49d1eb6..29f982a 100644 --- a/templates/blockDoi.tpl +++ b/templates/blockDoi.tpl @@ -20,8 +20,8 @@ {capture assign=translatedDoi}{translate key="doi.readerDisplayName"}{/capture} {translate key="semicolon" label=$translatedDoi} - {$doi} + {$doi|escape} {/if} - \ No newline at end of file + diff --git a/templates/blockReferences.tpl b/templates/blockReferences.tpl index 330a628..96d9cc5 100644 --- a/templates/blockReferences.tpl +++ b/templates/blockReferences.tpl @@ -19,9 +19,9 @@
{$parsedCitation->getCitationWithLinks()|strip_unsafe_html} {call_hook name="Templates::Article::Details::Reference" citation=$parsedCitation}
{/foreach} {else} - {$publication->getData('citationsRaw')|nl2br} + {$publication->getData('citationsRaw')|escape|nl2br} {/if} -{/if} \ No newline at end of file +{/if} diff --git a/templates/displayInline.tpl b/templates/displayInline.tpl index 579202c..1d15262 100644 --- a/templates/displayInline.tpl +++ b/templates/displayInline.tpl @@ -16,7 +16,7 @@ * @uses $supplementaryGalleys array List of article galleys that are supplementary * @uses $inlineHtmlGalley string The HTML content of the Article Galley *} -{include file="frontend/components/header.tpl" pageTitleTranslated=$publication->getLocalizedFullTitle(null, 'html')|strip_unsafe_html|escape} +{include file="frontend/components/header.tpl" pageTitleTranslated=$publication->getLocalizedFullTitle(null, 'html')|strip_unsafe_html}