Browse files

MDL-15392: fix output sanitization and put permalink back, in a xhtml…

…-strict compliant way.
  • Loading branch information...
scyrma committed Jun 27, 2008
1 parent 020ce47 commit 25effd96822d7578d3a56f0636100046c4f9683f
Showing with 2 additions and 2 deletions.
  1. +2 −2 blog/lib.php
@@ -144,9 +144,9 @@ function blog_print_entry($blogEntry, $viewtype='full', $filtertype='', $filters
global $USER, $CFG, $COURSE, $ME;
$template['body'] = format_text($blogEntry->summary, $blogEntry->format);
//$template['title'] = '<a name="'. $blogEntry->subject .'"></a>';
$template['title'] = '<a id="'. s($blogEntry->subject) .'"></a>';
//enclose the title in nolink tags so that moodle formatting doesn't autolink the text
$template['title'] = '<span class="nolink">'.$blogEntry->subject.'</span>';
$template['title'] .= '<span class="nolink">'. format_string($blogEntry->subject) .'</span>';
$template['userid'] = $blogEntry->userid;
$template['author'] = fullname(get_record('user','id',$blogEntry->userid));
$template['lastmod'] = userdate($blogEntry->lastmodified);

0 comments on commit 25effd9

Please sign in to comment.