Quellcode durchsuchen

Fix for 906217. If replying to an email inline, and a spell check is done,
spelling mistakes in the reply would be corrected on the wrong line (ie,
throughout the original email to which you are replying). This is caused
by aspell (and possibly ispell) ignoring empty lines.

jangliss vor 21 Jahren
Ursprung
Commit
8b0c0afd7d
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 2 0
      ChangeLog
  2. 2 2
      plugins/squirrelspell/modules/check_me.mod

+ 2 - 0
ChangeLog

@@ -112,6 +112,8 @@ Version 1.5.1 -- CVS
   - Fixed left frame mailbox list when sorting by case.
   - Fixed left frame mailbox list when sorting by case.
   - Separated fortune plugin configuration variables from main plugin scripts.
   - Separated fortune plugin configuration variables from main plugin scripts.
     See plugins/fortune/INSTALL.
     See plugins/fortune/INSTALL.
+  - Fix for #906217 when checking spelling of inline replies, the corrected
+    words would appear through original email.
 
 
 Version 1.5.0
 Version 1.5.0
 --------------------
 --------------------

+ 2 - 2
plugins/squirrelspell/modules/check_me.mod

@@ -66,7 +66,7 @@ for ($i=0; $i<sizeof($sqspell_raw_lines); $i++){
   if(substr($sqspell_raw_lines[$i], 0, 1) != '>'){
   if(substr($sqspell_raw_lines[$i], 0, 1) != '>'){
     $sqspell_new_lines[$i] = ' ' . $sqspell_raw_lines[$i];
     $sqspell_new_lines[$i] = ' ' . $sqspell_raw_lines[$i];
   } else {
   } else {
-    $sqspell_new_lines[$i] = '';
+    $sqspell_new_lines[$i] = ' ';
   }
   }
 }
 }
 /**
 /**
@@ -435,4 +435,4 @@ if ($errors){
  * End:
  * End:
  * vim: syntax=php et ts=4
  * vim: syntax=php et ts=4
  */
  */
-?>
+?>