[Rt-commit] r9627 - rt/branches/3.6-RELEASE/lib/RT
audreyt at bestpractical.com
audreyt at bestpractical.com
Fri Nov 9 15:23:40 EST 2007
Author: audreyt
Date: Fri Nov 9 15:23:38 2007
New Revision: 9627
Modified:
rt/branches/3.6-RELEASE/lib/RT/Record.pm
Log:
* _DecodeLOB: All text/* are treated as UTF-8, not only text/plain.
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 Fri Nov 9 15:23:38 2007
@@ -862,7 +862,7 @@
elsif ( $ContentEncoding && $ContentEncoding ne 'none' ) {
return ( $self->loc( "Unknown ContentEncoding [_1]", $ContentEncoding ) );
}
- if ( $ContentType eq 'text/plain' ) {
+ if ( $ContentType =~ m{^text/} ) {
$Content = Encode::decode_utf8($Content) unless Encode::is_utf8($Content);
}
return ($Content);
More information about the Rt-commit
mailing list