Sfoglia il codice sorgente

Windows aspell returns \r\n line endings. if \r is not removed, it breaks
javascript and list of suggestions is empty.

tokul 20 anni fa
parent
commit
ee3ebc12db
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      ChangeLog
  2. 1 1
      plugins/squirrelspell/modules/check_me.mod

+ 2 - 0
ChangeLog

@@ -450,6 +450,8 @@ Version 1.5.1 -- CVS
     sqimap_mailbox_exists() check. Reported by Daniel Watts.
   - Fixed decoding of quoted-printable text in decodeBody function.
     Reported by João Carlos Mendes Luís.
+  - Added CR trimming to SquirrelSpell plugin in order to fix problems on
+    Windows systems.
 
 Version 1.5.0 - 2 February 2004
 -------------------------------

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

@@ -121,7 +121,7 @@ if( check_php_version ( 4, 3 ) ) {
     $sqspell_output = array();
     for($i=1; $i<=2; $i++) {
         while(!feof($pipes[$i])) {
-           array_push($sqspell_output, rtrim(fgetss($pipes[$i],999),"\n"));
+           array_push($sqspell_output, rtrim(fgetss($pipes[$i],999),"\r\n"));
         }
         fclose($pipes[$i]);
     }