You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
I want to recommend some hardening for this functions input values one day.
I know the search string comes from $request->columns->{columnnumber}->search->value.
If I pipe some garbage string 'hello - 123' into this filter an exception happens because of the non parsable date or the explode.
If I only return one date '2019-05-14' by manually let the user type in dates then an exception happens too, because of the explode(' - ' ...).
In case of the DateRangeFilter
I would prefer to have no results when the requests search value is no date at all. "andWhere('1=0')"
I would prefer to have a one day result when the requests search value is one date without a " - "
Why do I complain? I try to rework some project and found that at least in my project/browser the user can input the string into the date range search field manually. That causes exceptions which I cannot cover without overwriting/extending the class or writing a special prefilter for the request. (At least from my active point of view.)
Greetings
The text was updated successfully, but these errors were encountered:
Hello,
DatatablesBundle/Datatable/Filter/DateRangeFilter.php
Line 43 in 5cca7f7
I want to recommend some hardening for this functions input values one day.
I know the search string comes from $request->columns->{columnnumber}->search->value.
If I pipe some garbage string 'hello - 123' into this filter an exception happens because of the non parsable date or the explode.
If I only return one date '2019-05-14' by manually let the user type in dates then an exception happens too, because of the explode(' - ' ...).
In case of the DateRangeFilter
Why do I complain? I try to rework some project and found that at least in my project/browser the user can input the string into the date range search field manually. That causes exceptions which I cannot cover without overwriting/extending the class or writing a special prefilter for the request. (At least from my active point of view.)
Greetings
The text was updated successfully, but these errors were encountered: