Procházet zdrojové kódy

Prepend "https://" to relative rss links

Zed před 7 roky
rodič
revize
a3303d6bef
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/formatters.nim

+ 1 - 1
src/formatters.nim

@@ -28,7 +28,7 @@ proc replaceUrl*(url: string; prefs: Prefs; rss=false): string =
   if prefs.replaceTwitter.len > 0:
     result = result.replace(twRegex, prefs.replaceTwitter)
   if rss:
-    result = result.replace("href=\"/", "href=\"" & hostname & "/")
+    result = result.replace("href=\"/", "href=\"https://" & hostname & "/")
 
 proc proxifyVideo*(manifest: string; proxy: bool): string =
   proc cb(m: RegexMatch; s: string): string =