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.

Update label view helper to have html escape by default#5101

Merged
weierophinney merged 2 commits into
zendframework:developfrom
stefanotorresi:update/label-view-helper
Oct 22, 2013
Merged

Update label view helper to have html escape by default#5101
weierophinney merged 2 commits into
zendframework:developfrom
stefanotorresi:update/label-view-helper

Conversation

@stefanotorresi
Copy link
Copy Markdown
Contributor

This PR replicates the FormRow view helper logic, which escapes the Element label property by default and takes advantage of the new disable_html_escape labelOptions property added in #4677 to toggle the escape off when needed.

This may look like a minor BC break, because anyone who used FormLabel helper rather than FormRow will now have unexpected escaping, but since the overall policy of ZF2 is 'secure by default' I would rather consider this a minor security fix.

stefanotorresi pushed a commit to stefanotorresi/zf2-documentation that referenced this pull request Sep 11, 2013
* Add FormRow docs
* Some corrections here and there
* Add docs for zendframework/zendframework#4677 and zendframework/zendframework#5101
@ghost ghost assigned weierophinney Oct 22, 2013
weierophinney added a commit that referenced this pull request Oct 22, 2013
Update label view helper to have html escape by default
weierophinney added a commit that referenced this pull request Oct 22, 2013
- Since this is technically a BC break, we need to call it out in the release
  notes.
weierophinney added a commit that referenced this pull request Oct 22, 2013
@weierophinney weierophinney merged commit a61856d into zendframework:develop Oct 22, 2013
@stefanotorresi stefanotorresi deleted the update/label-view-helper branch October 25, 2013 08:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants