Windows aspell returns \r\n line endings. if \r is not removed, it breaks
[squirrelmail.git] / plugins / squirrelspell / modules / check_me.mod
index 14d4e3c2fce66bb7cd91e6c1e6d797819b8c966f..37f7fd3fe18c9ce89ea82ea796792071ee63cf58 100644 (file)
@@ -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]);
     }