[rt-devel] [rt-announce] RT 1.3.30 released
Byron Ellacott
bje at apnic.net
Wed Jan 10 01:22:43 EST 2001
On Wed, 3 Jan 2001, Jesse wrote:
[snip]
I noticed 1-3-31 sitting around, so I installed that. I'm giving a
demonstration tomorrow, so I've been running through the web UI. I
noticed a problem with attachments - HTML::Mason was munging everything to
be HTML-nice, but a jpg doesn't display if its < characters are changed to
<, and it's not good to have </BODY></HTML> on the end of binary
attachments.
Attached is a quick patch to the attachments dhandler to get HTML::Mason
out of the way and provide the raw data, which can be applied with
rt-1-3-31$ patch -p1 < rt-1-3-31-attachments.diff
(Apply it when at the root of the rt2 tree).
Since it only modifies webrt/Ticket/Attachment/dhandler, you can just
apply it by hand, too.
--
bje
-------------- next part --------------
diff -Naur rt-1-3-31/webrt/Ticket/Attachment/dhandler rt-1-3-31-attch/webrt/Ticket/Attachment/dhandler
--- rt-1-3-31/webrt/Ticket/Attachment/dhandler Fri Dec 15 14:04:00 2000
+++ rt-1-3-31-attch/webrt/Ticket/Attachment/dhandler Wed Jan 10 16:19:29 2001
@@ -1,5 +1,4 @@
-<%$AttachmentObj->Content%>
-<%init>
+<%perl>
my ($ticket, $trans,$attach, $filename);
my $arg = $m->dhandler_arg; # get rest of path
if ($arg =~ '^(\d+)/(\d+)/(\d+)/(.*)$') {
@@ -22,5 +21,7 @@
}
my $content_type = $AttachmentObj->ContentType || 'text/html';
$r->content_type($content_type);
-</%init>
+ $m->out($AttachmentObj->Content);
+ $m->abort;
+</%perl>
More information about the Rt-devel
mailing list