Zend Framework

Filter / Validate The Page Number on setCurrentPageNumber()

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.0
  • Fix Version/s: 1.6.1
  • Component/s: Zend_Paginator
  • Labels:
    None

Description

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.

Activity

Hide
Matthew Ratzloff added a comment -

Fixed in revision 11246.

Show
Matthew Ratzloff added a comment - Fixed in revision 11246.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: