Zend Framework

escape callback doesn't accept additional params

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.6
  • Component/s: Zend_View
  • Labels:
    None

Description

as stated in the docs (http://framework.zend.com/manual/en/zend.view.scripts.html#zend.view.scripts.escaping), a custom callback function can receive additional parameters:
"The callback function or method should take the value to be escaped as its first parameter, and all other parameters should be optional."
this doesn't work though as the escape method only accepts 1 param.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Good point – and looking at the code, this could be fairly easily remedied; will work on this for the next mini release.

Show
Matthew Weier O'Phinney added a comment - Good point – and looking at the code, this could be fairly easily remedied; will work on this for the next mini release.
Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk and 1.10 release branch.

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk and 1.10 release branch.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: