瀏覽代碼

Merge pull request #693 from JonathanReeve/master

escape titles in attributes
Eddie Machado 11 年之前
父節點
當前提交
f4480a62f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/bones.php

+ 1 - 1
library/bones.php

@@ -287,7 +287,7 @@ function bones_filter_ptags_on_images($content){
 function bones_excerpt_more($more) {
 	global $post;
 	// edit here if you like
-	return '...  <a class="excerpt-read-more" href="'. get_permalink($post->ID) . '" title="'. __( 'Read ', 'bonestheme' ) . get_the_title($post->ID).'">'. __( 'Read more &raquo;', 'bonestheme' ) .'</a>';
+	return '...  <a class="excerpt-read-more" href="'. get_permalink( $post->ID ) . '" title="'. __( 'Read ', 'bonestheme' ) . esc_attr( get_the_title( $post->ID ) ).'">'. __( 'Read more &raquo;', 'bonestheme' ) .'</a>';
 }