Browse Source

update new receive hook

Thomas Buck 5 years ago
parent
commit
fad7ba6596
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      macros.py

+ 1
- 1
macros.py View File

@@ -243,7 +243,7 @@ def hook_postconvert_size():
243 243
     def matched_link(matchobj):
244 244
         try:
245 245
             path = matchobj.group(1)
246
-            if path.startswith("http") or path.startswith("//"):
246
+            if path.startswith("http") or path.startswith("//") or path.startswith("ftp"):
247 247
                 return '<a href=\"%s\">%s</a>' % (matchobj.group(1), matchobj.group(3))
248 248
             elif path.startswith("/"):
249 249
                 path = path.strip("/")

Loading…
Cancel
Save