#23831 closed Bug (fixed)
mark_safe and mark_for_escaping should account for __html__
Reported by: | Aymeric Augustin | Owned by: | Aymeric Augustin |
---|---|---|---|
Component: | Utilities | Version: | 1.7 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The changes made #7261 aren't complete. They made it possible for other libraries to interpret strings marked explicitly as safe or unsafe in Django. However Django doesn't always interpret correctly strings marked by other libraries.
The reason is that mark_safe and mark_for_escaping don't account for __html__
. As a consequence escaping information is lost once these functions get called, and they're called in many places.
Thanks mitsuhiko for the report.
Change History (5)
comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Version: | master → 1.7 |
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
This change makes sense to me, but I don't feel like I'm much of an expert here.