ZF-4313: Escaping HTML attributes breaks formButton/formCheckBox backward compatibility

Issue Type: Bug Created: 2008-09-17T00:27:22.000+0000 Last Updated: 2011-08-03T15:40:46.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: TNF ICT Dept (tnfict) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_View

Related issues: - ZF-4333



Recent changes in ZF (starting at 1.6.0) broke backward compatibility for us in the formButton implementation.

Where we had the following code: formButton('bMailAttendants', $this->getTranslation('mail\_attendants'), array('class' => 'buttonDefault', 'onclick' => 'mailAttendants(this,"'.$this->controllerName.'")')); ?>

we had to change this to: formButton('bMailAttendants', $this->getTranslation('mail\_attendants'), array('class' => 'buttonDefault', 'onclick' => 'mailAttendants(this,\\''.$this->controllerName.'\\')')); ?>

to work around the escaping code in Zend_View_Helper_HtmlElement::_htmlAttribs()

I realise that this is a duplicate (and feel to mark it as such...) of bug ZF-4175, but it seems that I am able to create a new issue, and not comment on an existing one. Could that be looked into as well? It would have saved me, and others, time...


Posted by TNF ICT Dept (tnfict) on 2008-10-13T04:16:17.000+0000

Since I can comment on the existing issue, I decided to mark this one as a duplicate of ZF-4175.

Posted by old of Satoru Yoshida ( on 2008-11-08T18:19:24.000+0000

I think ZF-4175 is another type problem, so I change the link from that issue to ZF-4333.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:17.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


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

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