From bba7f1706e30761e55954a5a4be569e5bb55a6c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 20 Jan 2022 11:50:47 +0100 Subject: [PATCH] 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. --- com.woltlab.wcf/templates/ampArticle.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, -- 2.20.1