From e586bc17f1d3dca07cf5c1d849b4f306f8d54d79 Mon Sep 17 00:00:00 2001 From: scyrma Date: Fri, 27 Jun 2008 04:00:18 +0000 Subject: [PATCH] MDL-15392: fix output sanitization and put permalink back, in a xhtml-strict compliant way. --- blog/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index 9c645334bb8..a76c7a27ba3 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -144,9 +144,9 @@ global $USER, $CFG, $COURSE, $ME; $template['body'] = format_text($blogEntry->summary, $blogEntry->format); - //$template['title'] = ''; + $template['title'] = ''; //enclose the title in nolink tags so that moodle formatting doesn't autolink the text - $template['title'] = ''.$blogEntry->subject.''; + $template['title'] .= ''. format_string($blogEntry->subject) .''; $template['userid'] = $blogEntry->userid; $template['author'] = fullname(get_record('user','id',$blogEntry->userid)); $template['lastmod'] = userdate($blogEntry->lastmodified);