trim all fields when importing via CSV. spaces are rarely intentional
This commit is contained in:
@@ -591,7 +591,7 @@ class Changeset
|
||||
// try to stop people inserting unstructured crap / malformed CSV
|
||||
throw new NotApplicableException("Value for column {$col->name} too long.");
|
||||
}
|
||||
$data[$col->id] = $col->cast($val);
|
||||
$data[$col->id] = $col->cast(trim($val));
|
||||
}
|
||||
|
||||
if ($forTableInsert) {
|
||||
|
||||
Reference in New Issue
Block a user