diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/SecureMail/Extension.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm index 90fafc06f..a8299860c 100644 --- a/extensions/SecureMail/Extension.pm +++ b/extensions/SecureMail/Extension.pm @@ -327,9 +327,9 @@ sub mailer_before_send { } # Encrypt if updating a private attachment without a comment if ($email->header('X-Bugzilla-Changed-Fields') - && $email->header('X-Bugzilla-Changed-Fields') =~ /Attachment #(\d+)/) + && $email->header('X-Bugzilla-Attach-ID')) { - my $attachment = Bugzilla::Attachment->new($1); + my $attachment = Bugzilla::Attachment->new($email->header('X-Bugzilla-Attach-ID')); if ($attachment && $attachment->isprivate) { $make_secure = SECURE_BODY; } |