Opened 3 years ago
Last modified 3 years ago
#34595 closed Cleanup/optimization
`format_html` should explicitely mention rgar `format_string` is not escaped — at Initial Version
| Reported by: | Natalia Bidart | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | 4.2 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The docs for format_html mention that args and kwargs are escaped but it does not say anything about format_string (which is, in fact, not escaped). Readers could benefit from this clarification to avoid putting unsafe content in format_string.
Note:
See TracTickets
for help on using tickets.