Browse Source

update new receive hook

Thomas Buck 6 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
     def matched_link(matchobj):
243
     def matched_link(matchobj):
244
         try:
244
         try:
245
             path = matchobj.group(1)
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
                 return '<a href=\"%s\">%s</a>' % (matchobj.group(1), matchobj.group(3))
247
                 return '<a href=\"%s\">%s</a>' % (matchobj.group(1), matchobj.group(3))
248
             elif path.startswith("/"):
248
             elif path.startswith("/"):
249
                 path = path.strip("/")
249
                 path = path.strip("/")

Loading…
Cancel
Save