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

Prevent crashes for per values ≤ 0 #17

Merged
merged 2 commits into from Nov 16, 2018

Conversation

Cellane
Copy link
Contributor

@Cellane Cellane commented Nov 16, 2018

This PR quickly fixes a bug in which the Pagination library crashes the entire server due to division by zero.

@anthonycastelli
Copy link
Member

@Cellane Thank you for this! I never checked that value. Will get this merged and tagged now.

@anthonycastelli anthonycastelli merged commit 0cd6a77 into vapor-community:master Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants