use strpos instead of preg_match

This commit is contained in:
Susann Sgorzaly
2018-02-26 08:46:41 +01:00
parent e5eccf1fc1
commit 611b1a92e8

View File

@@ -558,7 +558,7 @@ class Csv {
preg_match_all($pattern, $this->file_data, $matches);
foreach ($matches[0] as $match) {
if (empty($match) || !preg_match("/{$this->enclosure}/", $match)) {
if (empty($match) || (strpos($match, $this->enclosure) === false)) {
continue;
}