mirror of
https://github.com/webmin/webmin.git
synced 2026-06-21 03:40:25 +01:00
Don't mangle JS when saving
This commit is contained in:
@@ -86,7 +86,7 @@ else {
|
||||
print "Content-type: $attach->{'type'}\n\n";
|
||||
}
|
||||
}
|
||||
if ($attach->{'type'} =~ /^text\/html/i) {
|
||||
if ($attach->{'type'} =~ /^text\/html/i && !$in{'save'}) {
|
||||
print &safe_urls(&filter_javascript($attach->{'data'}));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user