ZF-4193: Filter / Validate The Page Number on setCurrentPageNumber()

Issue Type: Improvement Created: 2008-09-04T13:58:21.000+0000 Last Updated: 2008-09-05T21:38:24.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: Simon Corless (sico) Assignee: Matthew Ratzloff (mratzloff) Tags: - Zend_Paginator

Related issues: Attachments:


It would be a good idea for Zend_Paginator to filter or validate (as appropriate) that the page number being set is actually a number. The docs state it is good practice to make sure it's a number in the route but this may not always be possible, or the feature may be used in another way. Therefore Zend_Paginator should make sure the data given to it is of the correct type.

The same should also apply to setItemCountPerPage() and any other functions which require user input.


Posted by Matthew Ratzloff (mratzloff) on 2008-09-05T21:38:24.000+0000

Fixed in revision 11246.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.