From a8db060b392283ac1fb44c0557b9ae2dae340085 Mon Sep 17 00:00:00 2001 From: scyrma Date: Fri, 27 Jun 2008 04:02:31 +0000 Subject: [PATCH] MDL-15392: fix output sanitization and put permalink back, in a xhtml-strict compliant way. (Merge from 1.9) --- blog/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index cfa55e26a9..6f1103001f 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -144,9 +144,9 @@ global $USER, $CFG, $COURSE, $ME, $DB; $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($DB->get_record('user', array('id'=>$blogEntry->userid))); $template['lastmod'] = userdate($blogEntry->lastmodified); -- 2.39.5