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

pull/35/head
Ondřej Hruška 6 years ago
parent 4961430c8f
commit 074cda7fe4
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      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) {

Loading…
Cancel
Save