From fa5aea7631e7cdb84a5f38264f6ecff32212affe Mon Sep 17 00:00:00 2001 From: Marvin Feldmann Date: Mon, 14 Sep 2015 17:15:10 +0200 Subject: [PATCH] Suppress file name too long warning Suppress Warning: "File name is longer than the maximum allowed path length on this platform (4096)" --- parsecsv.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 42cd40a..d327bc3 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -405,7 +405,7 @@ class parseCSV { $this->conditions = $conditions; } - if (is_readable($input)) { + if (strlen($input) <= PHP_MAXPATHLEN && is_readable($input)) { $this->data = $this->parse_file($input); } else { $this->file_data = &$input;