#2915 closed defect (bug) (fixed)
XHTML validation failure when entry title containing quotes
| Reported by: | deko | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0.4 |
| Severity: | normal | Keywords: | bg|needs-patch bg|2nd-opinion |
| Cc: | Focuses: |
Description
line 331 comment-functions.php
echo ' title="' . sprintf( ('Comment on %s'), $post->post_title ) .'">';
PROBLEM: XHTML validation failure when a entry title contains quotes is used, such as: This a "blog" entry title?
Error message from W3C validation service:
This page is not Valid XHTML 1.0 Transitional!
Error: an attribute value literal can occur in an attribute specification list only after a VI delimiter.
... This is a "blog" entry title?">Comments »</a></p>
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
skeltoac sez: wp_specialchars($str, 'double')
should fix it.