trim all fields when importing via CSV. spaces are rarely intentional

This commit is contained in:
2018-08-11 22:32:30 +02:00
parent 4961430c8f
commit 074cda7fe4
+1 -1
View File
@@ -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) {