From d9f4d07b60aa3151bd2cc042873c1b2d2deb952e Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 20 Dec 2008 07:22:28 +0000 Subject: [PATCH] Don't mangle JS when saving --- mailboxes/detach.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailboxes/detach.cgi b/mailboxes/detach.cgi index aea997198..e223f3e82 100755 --- a/mailboxes/detach.cgi +++ b/mailboxes/detach.cgi @@ -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 {