Pārlūkot izejas kodu

No longer drop text/html attachements.

grunfink 1 gadu atpakaļ
vecāks
revīzija
136b7c1581
1 mainītis faili ar 0 papildinājumiem un 4 dzēšanām
  1. 0 4
      html.c

+ 0 - 4
html.c

@@ -2392,10 +2392,6 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
             if (content && xs_str_in(content, o_href) != -1)
             if (content && xs_str_in(content, o_href) != -1)
                 continue;
                 continue;
 
 
-            /* drop silently any attachment that may include JavaScript */
-            if (strcmp(type, "text/html") == 0)
-                continue;
-
             if (strcmp(type, "image/svg+xml") == 0 && !xs_is_true(xs_dict_get(srv_config, "enable_svg")))
             if (strcmp(type, "image/svg+xml") == 0 && !xs_is_true(xs_dict_get(srv_config, "enable_svg")))
                 continue;
                 continue;