[Rt-commit] r9645 - rt/branches/3.6-RELEASE/lib/RT
audreyt at bestpractical.com
audreyt at bestpractical.com
Mon Nov 12 02:58:56 EST 2007
Author: audreyt
Date: Mon Nov 12 02:58:56 2007
New Revision: 9645
Modified:
rt/branches/3.6-RELEASE/lib/RT/Record.pm
Log:
* RT::Record - _DecodeLOB now respects RT::I18N::IsTextualContentType.
Modified: rt/branches/3.6-RELEASE/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Record.pm (original)
+++ rt/branches/3.6-RELEASE/lib/RT/Record.pm Mon Nov 12 02:58:56 2007
@@ -862,7 +862,7 @@
elsif ( $ContentEncoding && $ContentEncoding ne 'none' ) {
return ( $self->loc( "Unknown ContentEncoding [_1]", $ContentEncoding ) );
}
- if ( $ContentType =~ m{^text/} ) {
+ if ( RT::I18N::IsTextualContentType($ContentType) ) {
$Content = Encode::decode_utf8($Content) unless Encode::is_utf8($Content);
}
return ($Content);
More information about the Rt-commit
mailing list