Add missing charset conversion.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 6 Jun 2010 15:59:55 +0000 (11:59 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 6 Jun 2010 15:59:55 +0000 (11:59 -0400)
Need to convert the charset here also, if fileas isn't already populated from the
name field.

Thanks to Lukas Gradl <horde#ssn.at> for tracking this one down.

turba/lib/Driver.php

index cf28365..2c3ae69 100644 (file)
@@ -2420,7 +2420,7 @@ class Turba_Driver
         }
 
         if (empty($this->fileas)) {
-            $message->fileas = Turba::formatName($object);
+            $message->fileas = Horde_String::convertCharset(Turba::formatName($object), $charset, 'utf-8');
         }
 
         return $message;