mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Improve sort filters
This commit is contained in:
parent
df37a488f7
commit
df8f7e1c7c
@ -46,7 +46,7 @@ class WebhookFilters extends QueryFilters
|
||||
{
|
||||
$sort_col = explode('|', $sort);
|
||||
|
||||
if (!is_array($sort_col) || count($sort_col) != 2) {
|
||||
if (!is_array($sort_col) || count($sort_col) != 2 || !in_array($sort_col[0], \Illuminate\Support\Facades\Schema::getColumnListing('webhooks'))) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user