Opened 17 years ago
Closed 17 years ago
#9540 closed defect (bug) (fixed)
Site Name In <link rel='index'> Not Escaped
| Reported by: | GamerZ | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Template | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
In wp-includes/feed.php:
function get_index_rel_link() { $link = "<link rel='index' title='" . get_bloginfo('name') . "' href='" . get_bloginfo('siteurl') . "' />\n"; return apply_filters( "index_rel_link", $link ); }
If the site contains a single quote the HTML will be invalid. Attached is the patch using attributes_escape() to escape quotes.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [10936]) Escape title. Props GamerZ. fixes #9540