Zend Framework

View Helper Escape Failing on 1.10.1

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Not an Issue
  • Affects Version/s: 1.10.1
  • Fix Version/s: None
  • Component/s: Zend_View
  • Labels:
    None

Description

On updating from 1.9.6 to 1.10.1, output from $this->view->escape('£99.99') would render nothing instead of the desired output. It seems this behaviour only effects strings with multi-byte chars (Eg £'s).

Issue Links

Activity

Hide
Ramon Henrique Ornelas added a comment -

In method Zend_View_Abstract::escape()
Can be a problem with of the Zend_View_Abstract::$_encoding

Encoding
In 1.9.6 default = 'ISO-8859-1'
In 1.10.1 default = 'UTF-8'

Show
Ramon Henrique Ornelas added a comment - In method Zend_View_Abstract::escape() Can be a problem with of the Zend_View_Abstract::$_encoding Encoding In 1.9.6 default = 'ISO-8859-1' In 1.10.1 default = 'UTF-8'
Hide
Paddy Dent added a comment -

thanks for the swift response!
it makes complete sense, and now we've set the other relevant attributes to UTF-8 (Eg database sockets/etc) the issue has been resolved.

Show
Paddy Dent added a comment - thanks for the swift response! it makes complete sense, and now we've set the other relevant attributes to UTF-8 (Eg database sockets/etc) the issue has been resolved.
Hide
Ramon Henrique Ornelas added a comment -

@Paddy
Thank You for report.
Change made to 1.9.7.

See http://framework.zend.com/manual/en/migration.19.html from section, Security fixes as with 1.9.7

Show
Ramon Henrique Ornelas added a comment - @Paddy Thank You for report. Change made to 1.9.7. See http://framework.zend.com/manual/en/migration.19.html from section, Security fixes as with 1.9.7
Hide
Paddy Dent added a comment -

many thanks again...we'll review the doc you recommended and validate our newer web apps.

Show
Paddy Dent added a comment - many thanks again...we'll review the doc you recommended and validate our newer web apps.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: