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)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 21 Jan 2022 11:03:24 +0000 (12:03 +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.

(cherry picked from commit bba7f1706e30761e55954a5a4be569e5bb55a6c4)

com.woltlab.wcf/templates/ampArticle.tpl

index c33e7381405c8873f72d44c3b6661b0a0433c3a1..6d6dd15fe930eccc5c584a8a6b899edc7b623e31 100644 (file)
@@ -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},