diff --git a/classes/file_search.php b/classes/file_search.php index 1356af1..84df448 100644 --- a/classes/file_search.php +++ b/classes/file_search.php @@ -639,7 +639,7 @@ public static function make_where_clause(object $criteria): array { */ public static function get_id_from_csv(string $line): int { // Interpret the last line as a csv line. - $csv = str_getcsv($line); + $csv = str_getcsv($line, ",", "\"", "\\"); // Check a few columns to ensure we have a valid line. if (empty($csv[self::CSV_CONTEXTID])) { return 0;