Browse Source

add xss in duplicate()

zahmis 5 years ago
parent
commit
069731fe49
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/server/service/page.js

+ 2 - 0
src/server/service/page.js

@@ -225,6 +225,8 @@ class PageService {
     options.grantUserGroupId = page.grantedGroup;
     options.grantedUsers = page.grantedUsers;
 
+    newPagePath = this.crowi.xss.process(newPagePath); // eslint-disable-line no-param-reassign
+
     const createdPage = await Page.create(
       newPagePath, page.revision.body, user, options,
     );