Add missing JSON encoding of the PAGE_TITLE in `ampArticle.tpl`
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Jan 2022 10:50:47 +0000 (11:50 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Jan 2022 10:56:23 +0000 (11:56 +0100)
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

index 5c6d786804005e6d2a69c06c44df0ec0fd69ff43..04ebf2442c60e2bbb6dc05c6018b801bff2bedc6 100644 (file)
@@ -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},