Explorar o código

Fix name start with https?

Sotaro KARASAWA %!s(int64=10) %!d(string=hai) anos
pai
achega
1c0ec5f8c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/models/page.js

+ 1 - 1
lib/models/page.js

@@ -329,7 +329,7 @@ module.exports = function(crowi) {
       /^\/\-\/.*/,
       /^\/_r\/.*/,
       /^\/user\/[^\/]+\/(bookmarks|comments|activities|pages|recent-create|recent-edit)/, // reserved
-      /^http:\/\/.+$/, // avoid miss in renaming
+      /^https?:\/\/.+$/, // avoid miss in renaming
       /.+\/edit$/,
       /.+\.md$/,
       /^\/(installer|register|login|logout|admin|me|files|trash|paste|comments)(\/.*|$)/,