diff --git a/app/Tables/Changeset.php b/app/Tables/Changeset.php index ad2aabd..7227eea 100644 --- a/app/Tables/Changeset.php +++ b/app/Tables/Changeset.php @@ -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) {