Просмотр исходного кода

Merge pull request #3559 from weseek/fix/5474-5486-pages-can-be-created-under-share-path

Fix/5474 5486 pages can be created under share path
Yuki Takei 5 лет назад
Родитель
Сommit
d5f2674efd
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      CHANGES.md
  2. 1 1
      src/server/models/page.js

+ 3 - 0
CHANGES.md

@@ -5,8 +5,11 @@
 * Support: Update libs
     * bunyan
     * browser-bunyan
+* Fix: Can create pages on the share route
+    * Introduced by v4.2.8
 * Fix: Group page is excluded by recurrence operation
     * Introduced by v4.2.8
+
 ## v4.2.13
 
 * Feature: Detect indent size automatically

+ 1 - 1
src/server/models/page.js

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