mirror of
https://github.com/outline/outline.git
synced 2026-11-23 06:11:04 +03:00
fix: Add missing escape on head tags (#10734)
This commit is contained in:
1 parent
b6a8986235
commit
df5fd8d0db
1 file changed
+3
-3
@@ -113,18 +113,18 @@ export const renderApp = async (
|
||||
|
||||
let headTags = `
|
||||
<meta name="robots" content="${allowIndexing ? "index, follow" : "noindex, nofollow"}" />
|
||||
<link rel="canonical" href="${canonical}" />
|
||||
<link rel="canonical" href="${escape(canonical)}" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
type="image/png"
|
||||
href="${shortcutIcon}"
|
||||
href="${escape(shortcutIcon)}"
|
||||
sizes="32x32"
|
||||
/>
|
||||
`;
|
||||
|
||||
if (options.isShare) {
|
||||
headTags += `
|
||||
<link rel="sitemap" type="application/xml" href="/api/shares.sitemap?id=${options.rootShareId || shareId}">
|
||||
<link rel="sitemap" type="application/xml" href="/api/shares.sitemap?id=${escape(options.rootShareId || shareId)}">
|
||||
`;
|
||||
} else {
|
||||
headTags += prefetchTags;
|
||||
|
||||
Reference in new issue
Block a user