mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
trim potential spaces
This commit is contained in:
parent
d9c61fdb02
commit
fb28882f65
|
@ -309,7 +309,7 @@ class ValidationServiceProvider extends ServiceProvider
|
|||
}
|
||||
// for legacy, allows users to submit a comma separated string of options
|
||||
elseif(!is_array($value)) {
|
||||
$exploded = explode(',', $value);
|
||||
$exploded = array_map('trim', explode(',', $value));
|
||||
$invalid = array_diff($exploded, $options);
|
||||
if(count($invalid) > 0) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue