Browse Source

one more fix for #1043576. rewrapping is done in compose too.

tokul 20 years ago
parent
commit
4a2c279b3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/compose.php

+ 2 - 2
src/compose.php

@@ -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";
 
             }