Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #21387 Fix double escaping of the decision attributes in the prof…
…iler (stof) This PR was merged into the 3.2 branch. Discussion ---------- Fix double escaping of the decision attributes in the profiler | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21384 | License | MIT | Doc PR | n/a A ternary operator is considered safe by the Twig auto-escaping only when both branches are safe. But this ternary was safe only in the ELSE branch, causing it to be unsafe. This triggered a double-escaping of the value (escaping the output of the dump). The fix is to use a {% if %} and 2 separate output statements, allowing them to be auto-escaped separately. Commits ------- bc1f084 Fix double escaping of the decision attributes in the profiler
- Loading branch information