Skip to content

Commit

Permalink
Ignore invalid date range search
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Sep 9, 2019
1 parent 173cb77 commit 02493a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Requests/SearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ protected function addSimpleTerm(array $index, string $operator, ?string $value)
protected function addRangeSearchTerm(array $index, string $operator, ?string $value): void
{
$value = explode('-', $value);
if (count($value) != 2) {
return;
}

switch ($operator) {
case 'eq':
Expand Down

0 comments on commit 02493a5

Please sign in to comment.