Browse Source

added '%' to forbiddenPages

sou 7 năm trước cách đây
mục cha
commit
5f38ad3648
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/models/page.js

+ 1 - 1
lib/models/page.js

@@ -410,7 +410,7 @@ module.exports = function(crowi) {
 
   pageSchema.statics.isCreatableName = function(name) {
     var forbiddenPages = [
-      /\^|\$|\*|\+|#/,
+      /\^|\$|\*|\+|#|%/,
       /^\/-\/.*/,
       /^\/_r\/.*/,
       /^\/_apix?(\/.*)?/,