Also filter other JS types

This commit is contained in:
Jamie Cameron
2026-08-27 21:35:56 -07:00
parent 670a22122f
commit b14f24fc61

View File

@@ -100,7 +100,8 @@ else {
print "Content-type: $attach->{'type'}\n\n";
}
}
if ($attach->{'type'} =~ /^text\/html/i && !$in{'save'}) {
if ($attach->{'type'} =~ /^(text\/html|image\/svg|application\/xhtml)/i
&& !$in{'save'}) {
print &safe_urls(&filter_javascript($attach->{'data'}));
}
else {