Don't mangle JS when saving

This commit is contained in:
Jamie Cameron
2008-12-20 07:22:28 +00:00
parent e094704dd7
commit d9f4d07b60

View File

@@ -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 {