mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 05:16:06 +03:00
GH-879 Bug in file PHPExcel/Reader/CSV.php
Code logic identifying a defined separator when no separator is explicitly defined Case-insensitive check when separator is explicitly defined
This commit is contained in:
parent
c4782b6606
commit
8af620f97b
@ -168,10 +168,11 @@ class PHPExcel_Reader_CSV extends PHPExcel_Reader_Abstract implements PHPExcel_R
|
||||
return;
|
||||
}
|
||||
|
||||
if ((strlen(trim($line)) == 5) && (strpos($line, 'sep=') !== 0)) {
|
||||
return $this->skipBOM();
|
||||
}
|
||||
if ((strlen(trim($line, "\r\n")) == 5) && (stripos($line, 'sep=') === 0)) {
|
||||
$this->delimiter = substr($line, 4, 1);
|
||||
return;
|
||||
}
|
||||
return $this->skipBOM();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user