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: 5.5.0_Alpha_1~200^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bba7f1706e30761e55954a5a4be569e5bb55a6c4;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. --- diff --git a/com.woltlab.wcf/templates/ampArticle.tpl b/com.woltlab.wcf/templates/ampArticle.tpl index 5c6d786804..04ebf2442c 100644 --- a/com.woltlab.wcf/templates/ampArticle.tpl +++ b/com.woltlab.wcf/templates/ampArticle.tpl @@ -20,7 +20,7 @@ }, "publisher": { "@type": "Organization", - "name": "{PAGE_TITLE|language}", + "name": {@PAGE_TITLE|language|json}, "logo": { "@type": "ImageObject", "url": {@$__wcf->getStyleHandler()->getStyle()->getPageLogo()|json},