mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-10-15 05:11:26 +00:00
fix: account for whitespace in style tag regex to prevent XSS
This commit is contained in:
@@ -82,7 +82,7 @@ Document.getInitialProps = async (
|
||||
metaTitle = config.metaTitle;
|
||||
// Remove any </style> tags to prevent XSS breakout
|
||||
customCss = config.customCss
|
||||
? config.customCss.replace(/<\/style>/gi, "")
|
||||
? config.customCss.replace(/<\/\s*style\s*>/gi, "")
|
||||
: null;
|
||||
faviconHref = config.faviconUrl || null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user