one more fix for #1043576. rewrapping is done in compose too.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 30 Mar 2005 11:12:15 +0000 (11:12 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 30 Mar 2005 11:12:15 +0000 (11:12 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9164 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 38e101f..55b429a 100644 (file)
@@ -411,10 +411,10 @@ if ($send) {
             if( $line <> '-- ' ) {
                 $line = rtrim($line);
             }
-            if (strlen($line) <= $editor_size + 1) {
+            if (sq_strlen($line,$default_charset) <= $editor_size + 1) {
                 $newBody .= $line . "\n";
             } else {
-                sqWordWrap($line, $editor_size);
+                sqWordWrap($line, $editor_size,$default_charset);
                 $newBody .= $line . "\n";
 
             }