-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
2.1.2, 2.2
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
-
When I select to import a csv file in the database activity while specifying comma as delimiter and double quote as field enclosure, the following data won't import... (get unhelpful error "Unable to read the raw data from the CSV file")
sport_name,sport_desc
"Baseball","Played with bats, balls"
But the following data will import...
sport_name,sport_desc
"Baseball","Played with bats balls"
Seems that the explode code on line 132 in lib/csvlib.class.php is not taking into account the field enclosures.