#9168 closed defect (bug) (fixed)
Double attribute escaping for post attachments
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.2 |
| Component: | Media | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
When the rich editor is off, editing attachments causes the description field to be double encoded. This is due to the use of htmlspecialchars, when the value is already encoded in sanitize_post_field.
Switching to attribute_escape fixes this; I'll attach patches for 2.7 and trunk.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
This should use wp_specialchars, not attribute_escape. The new wp_specialchars does not double encode entities by default.