Browse Source

Fix pagename problem

Kazuki Sawada 10 năm trước cách đây
mục cha
commit
dcfbbc7931
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

@@ -332,7 +332,7 @@ module.exports = function(crowi) {
       /^http:\/\/.+$/, // avoid miss in renaming
       /.+\/edit$/,
       /.+\.md$/,
-      /^\/(installer|register|login|logout|admin|me|files|trash|paste|comments).+/,
+      /^\/(installer|register|login|logout|admin|me|files|trash|paste|comments)(\/.*|)$/,
     ];
 
     var isCreatable = true;