1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

Merge pull request #130 from floatingLomas/1364-space-separated-task-ids

Allow use of any whitespace or a comma as a task ID delimiter in custom ...
This commit is contained in:
Evan Priestley 2012-06-15 16:08:31 -07:00
commit ee4cedce7f

View file

@ -154,7 +154,7 @@ final class AphrontRequest {
return $default;
}
$list = $this->getStr($name);
$list = preg_split('/[,\n]/', $list);
$list = preg_split('/[\s,]/', $list);
$list = array_map('trim', $list);
$list = array_filter($list, 'strlen');
$list = array_values($list);