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

Minor bug in validation of ajax 'page' parameter #50

Open
crawley opened this issue Nov 18, 2022 · 0 comments
Open

Minor bug in validation of ajax 'page' parameter #50

crawley opened this issue Nov 18, 2022 · 0 comments

Comments

@crawley
Copy link

crawley commented Nov 18, 2022

I noticed this in select2/Select2View.py

            try:
                page = int(page)
            except TypeError:
                raise InvalidParameter("Invalid page '%s' passed")
            else:
                if page < 1:
                    raise InvalidParameter("Invalid page '%s' passed")

The value of page needs to be interpolated into both exception messages.

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

No branches or pull requests

1 participant