From: Tim Düsterhus Date: Thu, 20 Jan 2022 10:50:47 +0000 (+0100) Subject: Add missing JSON encoding of the PAGE_TITLE in `ampArticle.tpl` X-Git-Tag: 3.1.26~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=82a660fdbe01c14154a71844a8ae2e13ba2971fd;p=GitHub%2FWoltLab%2FWCF.git Add missing JSON encoding of the PAGE_TITLE in `ampArticle.tpl` This does not need to be fixed in any current branch, because the broken-ness of `|encodeJSON` will result in broken metadata one way or another. (cherry picked from commit bba7f1706e30761e55954a5a4be569e5bb55a6c4) --- diff --git a/com.woltlab.wcf/templates/ampArticle.tpl b/com.woltlab.wcf/templates/ampArticle.tpl index c33e738140..6d6dd15fe9 100644 --- a/com.woltlab.wcf/templates/ampArticle.tpl +++ b/com.woltlab.wcf/templates/ampArticle.tpl @@ -16,7 +16,7 @@ }, "publisher": { "@type": "Organization", - "name": "{PAGE_TITLE|language}", + "name": {@PAGE_TITLE|language|json}, "logo": { "@type": "ImageObject", "url": {@$__wcf->getStyleHandler()->getStyle()->getPageLogo()|json},