[Rt-commit] [svn] r1677 - in rt/branches/3.3-TESTING: . lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Wed Oct 20 18:56:16 EDT 2004
Author: jesse
Date: Wed Oct 20 18:56:16 2004
New Revision: 1677
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/lib/RT/Attachment_Overlay.pm
Log:
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/3.3-TESTING/lib/RT/Attachment_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Attachment_Overlay.pm (original)
+++ rt/branches/3.3-TESTING/lib/RT/Attachment_Overlay.pm Wed Oct 20 18:56:16 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