From 3c31b70724780d188c3a3e82c54668ad3044c266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Sun, 21 Jan 2018 21:30:48 +0100 Subject: [PATCH] Added accidentally removed regex modifier i --- parsecsv.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 03b17fc..e8d59b2 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -825,7 +825,7 @@ class parseCSV { $this->file = $file; } - if (preg_match('/\.php$/', $file) && preg_match('/<\?.*?\?>(.*)/ms', $data, $strip)) { + if (preg_match('/\.php$/i', $file) && preg_match('/<\?.*?\?>(.*)/ms', $data, $strip)) { $data = ltrim($strip[1]); }