Opened 13 years ago
Closed 13 years ago
#24738 closed defect (bug) (wontfix)
id attributes populated by comment_ID() are not escaped
| Reported by: | kwight | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Comments | Version: | 1.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
The core comment templates use comment_ID() to help populate some id attributes. comment_ID() is filterable, and should be escaped.
Attachments (2)
Change History (10)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
If I had my way, get_comment_ID() wouldn't have a filter. (get_the_ID() doesn't have one either.) That said, it returns an integer. So we can/should either cast to an integer inside get_comment_ID(), or just assume that plugin authors won't return something other than an integer.