Problem/Motivation
Currently the csv import with "Copy & Paste" doesn't support csv cell enclosure. That is, for example, if the following csv is pasted and imported, the number of the resulting table columns become 3.
a,aaa
b,"bb,b"
"c","cc,c"
It's because each row is separated by the specified delimiter in a simple manner.
$cols = explode($col_delimiter, $row);
Proposed resolution
Add enclosure support by replacing the following
$cols = explode($col_delimiter, $row);
with
$cols = str_getcsv($row, $col_delimiter);
Remaining tasks
Review the patch
User interface changes
(None)
API changes
(None)
Data model changes
(None)