puppetlabs/puppet-dashboard — pull request #137 by sodabrew (2012-11-07 10:33:50+00:00)
Title: Handle out-of-range and bogus pagination inputs.

Handles bogus pagination inputs.

If you visit your local puppet dashboard at `/nodes?per_page=whaaa` you get an exception.
If you visit `/nodes?page=1000000000000` you will get "no matching nodes".

With this change, an invalid per_page uses the default per_page. A too-large page number will show the last page, and a too-small or invalid page number will show the first page.