Browse Source

Merge pull request #566 from weseek/fix/isCreatableName

added '%' to forbiddenPages
Yuki Takei 7 years ago
parent
commit
bd73218f71
1 changed files with 1 additions and 1 deletions
  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?(\/.*)?/,