mirror of
https://github.com/webmin/webmin.git
synced 2026-08-31 18:50:39 +01:00
Also filter other JS types
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user