Commit 5c8527f5 authored by Taylor Otwell's avatar Taylor Otwell

Use str_getcsv instead of explode in validator to allow commas in in and not_in rules.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent ea820add
......@@ -927,7 +927,7 @@ class Validator {
// "max:3" specifies that the value may only be 3 characters long.
if (($colon = strpos($rule, ':')) !== false)
{
$parameters = explode(',', substr($rule, $colon + 1));
$parameters = str_getcsv(substr($rule, $colon + 1));
}
return array(is_numeric($colon) ? substr($rule, 0, $colon) : $rule, $parameters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment