Opened 16 years ago
Closed 11 years ago
#15659 closed defect (bug) (fixed)
Entity escaping needed for comments list table
| Reported by: | brettz95 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | administration |
Description
Perhaps only as a result of the fact that the URL will be truncated for display, it is possible that URLs will have entities in URLs such as & truncated, thereby creating a non-well-formed entity for application/xhtml+xml . The following patch fixes it (quotation escaping is not needed since this is element content).
This is an easy fix which I hope can be applied given that its lack breaks reviewing the important comments editing page. Thanks.
Attachments (5)
Change History (12)
#1
@
16 years ago
- Component General → Administration
- Milestone Awaiting Review → 3.1
We prefer using the esc_*() functions instead of htmlentities().
#2
@
16 years ago
- Milestone 3.1 → Future Release
If you have something like ← you could end up with &la which looks strange. Alternate approach to trim unterminated entities from the end.
Punting to future.
#5
follow-up:
↓ 6
@
11 years ago
- Milestone Future Release
- Resolution → worksforme
- Status new → closed
This seems to currently work just fine.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Simple patch to avoid non-well-formed XHTML