Explorar o código

add xss in duplicate()

zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
069731fe49
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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,
     );