Escape title. Props GamerZ. fixes #9540

git-svn-id: http://svn.automattic.com/wordpress/trunk@10936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-15 17:12:31 +00:00
parent 4478013975
commit ba31bedcae
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_
* @return string * @return string
*/ */
function get_index_rel_link() { function get_index_rel_link() {
$link = "<link rel='index' title='" . get_bloginfo('name') . "' href='" . get_bloginfo('siteurl') . "' />\n"; $link = "<link rel='index' title='" . attribute_escape(get_bloginfo('name')) . "' href='" . get_bloginfo('siteurl') . "' />\n";
return apply_filters( "index_rel_link", $link ); return apply_filters( "index_rel_link", $link );
} }