How is possibile to limit the per_page settings in filter?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mizar001
Posts: 1
Joined: 25 Oct 2024, 14:07

How is possibile to limit the per_page settings in filter?

Post by mizar001 »

I have so many users and they can edit their filters as much as they want.

Sometimes people decide to set the per_page of a filter to 100.000 records. This obviously stresses the server and after some times the page is returning blank with Fatal error in the logs.

How to prevent people to mess with the filters or limit at least some parameters?
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: How is possibile to limit the per_page settings in filter?

Post by cas »

There is only $g_default_limit_view. unfortunately there is no $g_max_limit_view :mrgreen:
So 3 options:
- live with it
- implement something like $g_max_limit_view
- adjust the code (not a good idea but possible)
-- check function print_filter_per_page in filter_form_api.php
Post Reply