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 38e101f508c4c66309ccb8e41a63f052f3eba033..55b429a62e3630d37d54a748cf0bbf33f4f51298 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";
 
             }