Fix handling of whitespace at the end of imported file.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user