Fix handling of whitespace at the end of imported file.

This commit is contained in:
Michal Čihař
2005-10-06 08:41:22 +00:00
parent 05b0e658a5
commit f58e0ae0ff
2 changed files with 8 additions and 0 deletions

View File

@@ -54,6 +54,12 @@ if (isset($import_list)) {
if ($i == 2147483647) {
$i = $oi;
if (!$finished) break;
// at the end there might be some whitespace...
if (trim($buffer) == '') {
$buffer = '';
$len = 0;
break;
}
}
// Grab current character