Преглед на файлове

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

tokul преди 20 години
родител
ревизия
ee3ebc12db
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  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]);
     }