Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OutputEscaper] fixed output escaping when a variable was decorated w…
…ith SafeDecorator and passed to another part of the system where decoration also happens on the same un-decorated variable This is the case for instance when you pass a variable to a template like this: new SafeDecorator($var); and in the template, you pass it again to another embedded template: $view->render('...', array('var' => $var); The second time, $var will be escaped as the SafeDecorator wrapper will have been removed by the escaper.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters