🐛 [#4978] Fix accidental HTML escaping in summary PDF/confirmatio… #4987
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…n email
While the component/formatter properly takes care of conditional escaping by leveraging format_html and friends, the post-processor was converting the SafeString into a regular string again by doing string-interpolation for the file names, which leads to the full result being HTML escaped again.
In HTML mode, the prefix 'attachment' is now dropped, as the markup and context of the label/field should provide sufficient information and the 'attachment:' prefix looks odd in combination with the
markup.-
- Checked copying a form
- Checked import/export of a form
- Config checks in the configuration overview admin page
- Problem detection in the admin email digest is handled
-
- I have labelled the PR as "needs-backport" accordingly
-
- Ran
- Ran
-
- Updated the Dockerfile with the necessary scripts from the
-
- Commit messages refer to the relevant Github issue
- Commit messages explain the "why" of change, not the how
Closes #4978 (partially)
Changes
Fixed accidental double HTML escaping of file component markup.
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Dockerfile/scripts
./bin
folderCommit hygiene