From: skodak Date: Sun, 8 Oct 2006 08:52:15 +0000 (+0000) Subject: fixed wrong strip_slashes() when printing blog entry X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b3cbe3a333c2e5ffe667ffe464e0d2ea8fea9499;p=moodle.git fixed wrong strip_slashes() when printing blog entry --- diff --git a/blog/lib.php b/blog/lib.php index b1466bd3f5..96888c0ab8 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -147,11 +147,10 @@ global $USER, $CFG, $COURSE, $ME; - $template['body'] = format_text(stripslashes_safe($blogEntry->summary), $blogEntry->format); + $template['body'] = format_text($blogEntry->summary, $blogEntry->format); $template['title'] = ''; //enclose the title in nolink tags so that moodle formatting doesn't autolink the text - $template['title'] .= ''. stripslashes_safe($blogEntry->subject); - $template['title'] .= ''; + $template['title'] .= ''.$blogEntry->subject.''; $template['userid'] = $blogEntry->userid; $template['author'] = fullname(get_record('user','id',$blogEntry->userid)); $template['lastmod'] = userdate($blogEntry->lastmodified);