Ver Fonte

added '%' to forbiddenPages

sou há 7 anos atrás
pai
commit
5f38ad3648
1 ficheiros alterados com 1 adições e 1 exclusões
  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?(\/.*)?/,