Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set maximum records limit per-page in config. #3171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gemul
Copy link

@gemul gemul commented Aug 26, 2024

This PR adds a max_limit configuration to prevent end-users from arbitrarily setting a large value for the length request parameter, which could otherwise cause the server to overload if not handled manually (e.g., in middleware).

If the length value exceeds this limit, it will be overridden with the specified max_limit.

The default value is 100.

Copy link

sonarcloud bot commented Aug 26, 2024

@yajra
Copy link
Owner

yajra commented Sep 9, 2024

Thanks for the PR! The changes look good, however, I suspect this might break the export functionality of buttons package.

Will check further when I get the chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants