Explorar o código

Added more checks.

grunfink hai 1 ano
pai
achega
77b9cbe6c3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      rss.c

+ 4 - 0
rss.c

@@ -149,6 +149,10 @@ void rss_to_timeline(snac *user, const char *url)
         if (strcmp(l, url) == 0)
             continue;
 
+        /* skip crap */
+        if (!xs_startswith(l, "https:/") && !xs_startswith(l, "http:/"))
+            return;
+
         snac_debug(user, 1, xs_fmt("RSS link: %s", l));
 
         if (timeline_here(user, l)) {