[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-09-01 20:01:38 +00:00
committed by GitHub
parent 6282b6ef39
commit 58f3714ddc
+3 -3
View File
@@ -14,8 +14,6 @@ interface WhitelabelingDocumentProps {
customCss: string | null;
}
export default function Document({
metaTitle,
faviconHref,
@@ -83,7 +81,9 @@ Document.getInitialProps = async (
if (config) {
metaTitle = config.metaTitle;
// Remove any </style> tags to prevent XSS breakout
customCss = config.customCss ? config.customCss.replace(/<\/style>/gi, "") : null;
customCss = config.customCss
? config.customCss.replace(/<\/style>/gi, "")
: null;
faviconHref = config.faviconUrl || null;
}
} catch {