[Rt-commit] [svn] r1821 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:26:56 EST 2004
Author: jesse
Date: Thu Nov 11 03:26:56 2004
New Revision: 1821
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Attachment_Overlay.pm
Log:
r9083 at tinbook: jesse | 2004-11-11T02:59:30.423030Z
r6071 at tinbook: jesse | 2004-10-20T22:56:43.545883Z
RT-Ticket: 6192
RT-Status: update
Updated RT::Attachement::OriginalContent to use a better regexp for determining what's encoded and what's not.
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Attachment_Overlay.pm
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Attachment_Overlay.pm (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/RT/Attachment_Overlay.pm Thu Nov 11 03:26:56 2004
@@ -246,7 +246,7 @@
=head2 OriginalContent
Returns the attachment's content as octets before RT's mangling.
-Currently, this just means restoring text/plain content back to its
+Currently, this just means restoring text content back to its
original encoding.
=cut
@@ -254,7 +254,8 @@
sub OriginalContent {
my $self = shift;
- return $self->Content unless $self->ContentType eq 'text/plain';
+ return $self->Content unless (
+ $self->ContentType =~ qr{^(text/plain|message/rfc822)$}i) ;
my $enc = $self->OriginalEncoding;
my $content;
More information about the Rt-commit
mailing list