Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Changing encode from View Helper is not passed to EscapeHtmlAttrHelper#6707

Closed
stephandesouza wants to merge 4 commits into
zendframework:masterfrom
stephandesouza:patch-2
Closed

Changing encode from View Helper is not passed to EscapeHtmlAttrHelper#6707
stephandesouza wants to merge 4 commits into
zendframework:masterfrom
stephandesouza:patch-2

Conversation

@stephandesouza
Copy link
Copy Markdown
Contributor

Ideal where using ZF2 Components on non UTF-8 encoded projects (like onto ISO-8859-1 files), because this throws a Fatal Error at Zend/Escaper/Escaper.php on line 325.

Sample

Will add a Test if needed

Stack Trace

Nr Function Location
2 Zend\Form\View\Helper\FormSelect->render( ) ../zf2-select.php:12
3 Zend\Form\View\Helper\AbstractHelper->createAttributesString( ) ../FormSelect.php:134
4 Zend\View\Helper\Escaper\AbstractHelper->__invoke( ) ../AbstractHelper.php:232
5 Zend\View\Helper\EscapeHtmlAttr->escape( ) ../AbstractHelper.php:49
6 Zend\Escaper\Escaper->escapeHtmlAttr( ) ../EscapeHtmlAttr.php:26
7 Zend\Escaper\Escaper->toUtf8( ) ../Escaper.php:16

@stephandesouza stephandesouza changed the title Changing encoding from View Helper are not passed to HtmlAttrHelper Changing encode from View Helper is not passed to EscapeHtmlAttrHelper Sep 29, 2014
@froschdesign
Copy link
Copy Markdown
Member

@stephandesouza

Will add a Test if needed

This would be good.

@Ocramius
Copy link
Copy Markdown
Member

Ocramius commented Dec 8, 2014

Actually requires test cases. Escaping and encoding are security-sensitive areas that should not be taken lightly at any time.

@Ocramius Ocramius self-assigned this Dec 8, 2014
@Ocramius Ocramius added this to the 2.3.4 milestone Dec 8, 2014
@stephandesouza
Copy link
Copy Markdown
Contributor Author

Consider it done @Ocramius

@Ocramius
Copy link
Copy Markdown
Member

Ocramius commented Dec 9, 2014

@stephandesouza can you remove commit stephandesouza/zf2@94eaa30? You should never ever merge target branches into the feature/hotfix branches: rebase instead.

Otherwise I can cherry-pick it myself

This reverts commit 94eaa30, reversing
changes made to ae369ed.
@stephandesouza
Copy link
Copy Markdown
Contributor Author

Is not nice to work sleepy, ignore this PR. :(

@Ocramius
Copy link
Copy Markdown
Member

@stephandesouza thanks for the new PR :-)

@Ocramius Ocramius removed this from the 2.3.4 milestone Dec 10, 2014
@Ocramius
Copy link
Copy Markdown
Member

Marking as duplicate of #7002

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants