summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-03 18:23:54 +0200
committerGravatar grunfink2025-05-03 18:23:54 +0200
commit136b7c1581ae6e4aac4a1e4fa04340eb9aab7943 (patch)
treebb1c7b18d50ae32427088c2f741da8e8efc4276f /html.c
parentUpdated TODO. (diff)
downloadsnac2-136b7c1581ae6e4aac4a1e4fa04340eb9aab7943.tar.gz
snac2-136b7c1581ae6e4aac4a1e4fa04340eb9aab7943.tar.xz
snac2-136b7c1581ae6e4aac4a1e4fa04340eb9aab7943.zip
No longer drop text/html attachements.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/html.c b/html.c
index e3a955b..288968d 100644
--- a/html.c
+++ b/html.c
@@ -2392,10 +2392,6 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2392 if (content && xs_str_in(content, o_href) != -1) 2392 if (content && xs_str_in(content, o_href) != -1)
2393 continue; 2393 continue;
2394 2394
2395 /* drop silently any attachment that may include JavaScript */
2396 if (strcmp(type, "text/html") == 0)
2397 continue;
2398
2399 if (strcmp(type, "image/svg+xml") == 0 && !xs_is_true(xs_dict_get(srv_config, "enable_svg"))) 2395 if (strcmp(type, "image/svg+xml") == 0 && !xs_is_true(xs_dict_get(srv_config, "enable_svg")))
2400 continue; 2396 continue;
2401 2397