summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/html.c b/html.c
index 4b2cc72..0c65fc2 100644
--- a/html.c
+++ b/html.c
@@ -100,9 +100,7 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p
100 if (!xs_is_string(mt)) 100 if (!xs_is_string(mt))
101 mt = xs_mime_by_ext(u); 101 mt = xs_mime_by_ext(u);
102 102
103 if (strcmp(mt, "image/svg+xml") == 0 && !xs_is_true(xs_dict_get(srv_config, "enable_svg"))) 103 if (strcmp(mt, "image/svg+xml") != 0 || xs_is_true(xs_dict_get(srv_config, "enable_svg"))) {
104 s = xs_replace_i(s, n, "");
105 else {
106 xs *url = make_url(u, proxy, 0); 104 xs *url = make_url(u, proxy, 0);
107 105
108 xs_html *img = xs_html_sctag("img", 106 xs_html *img = xs_html_sctag("img",
@@ -117,8 +115,6 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p
117 s = xs_replace_i(s, n, s1); 115 s = xs_replace_i(s, n, s1);
118 } 116 }
119 } 117 }
120 else
121 s = xs_replace_i(s, n, "");
122 } 118 }
123 } 119 }
124 } 120 }