[Rt-devel] PATCH: Silence warnings Ticket/Elements/ShowTransactionAttachments

Jim Meyer purp at acm.org
Tue Dec 13 00:34:08 EST 2005


Attached.

--j
-- 
Jim Meyer, Geek at Large                                    purp at acm.org
-------------- next part --------------
--- share/html/Ticket/Elements/ShowTransactionAttachments	2005-11-16 21:20:56.000000000 -0800
+++ local/html/Ticket/Elements/ShowTransactionAttachments	2005-12-12 21:29:52.000000000 -0800
@@ -89,9 +89,10 @@
 % # }}}
 <div class="messagebody">
 <%perl>
 # {{{   if it has a content-disposition: attachment, don't show inline
-unless ( $message->GetHeader('Content-Disposition') =~ /attachment/i ) {
+unless ( $message->GetHeader('Content-Disposition') &&
+        ($message->GetHeader('Content-Disposition') =~ /attachment/i) ) {
 
     my $content;
 
     # If it's text


More information about the Rt-devel mailing list