[Rt-commit] r5065 - rt/branches/3.4-RELEASE/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Mon Apr 24 17:25:15 EDT 2006


Author: ruz
Date: Mon Apr 24 17:25:15 2006
New Revision: 5065

Modified:
   rt/branches/3.4-RELEASE/lib/RT/Attachment_Overlay.pm

Log:
* convert only if $enc'oding contains something

Modified: rt/branches/3.4-RELEASE/lib/RT/Attachment_Overlay.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Attachment_Overlay.pm	(original)
+++ rt/branches/3.4-RELEASE/lib/RT/Attachment_Overlay.pm	Mon Apr 24 17:25:15 2006
@@ -296,7 +296,7 @@
     eval {return( Encode::decode_utf8($content))} || return ($content);
   }
   
-  eval { Encode::from_to($content, 'utf8' => $enc);};
+  eval { Encode::from_to($content, 'utf8' => $enc) } if $enc;
   if ($@) {
 	$RT::Logger->error("Could not convert attachment from assumed utf8 to '$enc' :".$@);
   }


More information about the Rt-commit mailing list