Don't mangle JS when saving
authorJamie Cameron <jcameron@webmin.com>
Sat, 20 Dec 2008 07:22:28 +0000 (07:22 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 20 Dec 2008 07:22:28 +0000 (07:22 +0000)
mailboxes/detach.cgi

index aea9971..e223f3e 100755 (executable)
@@ -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 {