فهرست منبع

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]);
     }