missed some spots
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 1 Mar 2003 22:14:44 +0000 (22:14 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 1 Mar 2003 22:14:44 +0000 (22:14 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4577 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index f85709590163b636c88fa4fc444c65f45c7c9e04..5654520f5440eb353b73e6f3c23dcadad28ec29e 100644 (file)
@@ -552,7 +552,8 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) {
     if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
         function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
         $string = $languages[$squirrelmail_language]['XTRA_CODE']('decodeheader', $string);
-        return $string;
+       // Do we need to return at this point?
+       // return $string;
     }
     $i = 0;
     $aString = explode(' ',$string);
@@ -598,7 +599,11 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) {
         }
         ++$i;
     }
-    return implode('&nbsp;',$aString);
+    if ($htmlsave) {
+       return implode('&nbsp;',$aString);
+    } else {
+       return implode (' ',$aString);
+    }
 }
 
 /*