Opened 17 years ago
Closed 17 years ago
#9540 closed defect (bug) (fixed)
Site Name In <link rel='index'> Not Escaped
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Template | Keywords: | |
| Focuses: | Cc: |
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [10936]) Escape title. Props GamerZ. fixes #9540