|
@@ -604,12 +604,11 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
|
|
blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
|
|
|
|
|
|
|
|
// XSS Options
|
|
// XSS Options
|
|
|
- attrWhiteList: crowi.xssService.getAttrWhiteList(),
|
|
|
|
|
- tagWhiteList: crowi.xssService.getTagWhiteList(),
|
|
|
|
|
- highlightJsStyleBorder: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
|
|
|
|
|
-
|
|
|
|
|
- // XSS: rehype-sanitize options
|
|
|
|
|
isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
|
|
isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
|
|
|
|
|
+ xssOption: configManager.getConfig('markdown', 'markdown:rehypeSanitize:option'),
|
|
|
|
|
+ attrWhiteList: JSON.parse(crowi.configManager.getConfig('markdown', 'markdown:rehypeSanitize:attributes')),
|
|
|
|
|
+ tagWhiteList: crowi.configManager.getConfig('markdown', 'markdown:rehypeSanitize:tagNames'),
|
|
|
|
|
+ highlightJsStyleBorder: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
props.sidebarConfig = {
|
|
props.sidebarConfig = {
|