]> git.mjollnir.org Git - moodle.git/commitdiff
fixed wrong strip_slashes() when printing blog entry
authorskodak <skodak>
Sun, 8 Oct 2006 08:52:15 +0000 (08:52 +0000)
committerskodak <skodak>
Sun, 8 Oct 2006 08:52:15 +0000 (08:52 +0000)
blog/lib.php

index b1466bd3f5d749d5c7778c401f8e69cf2c4a7b7c..96888c0ab81f5ec389fb00c2e3449b3e166a69f5 100755 (executable)
 
         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'] = '<a name="'. $blogEntry->subject .'"></a>';
         //enclose the title in nolink tags so that moodle formatting doesn't autolink the text
-        $template['title'] .= '<span class="nolink">'. stripslashes_safe($blogEntry->subject);
-        $template['title'] .= '</span>';
+        $template['title'] .= '<span class="nolink">'.$blogEntry->subject.'</span>';
         $template['userid'] = $blogEntry->userid;
         $template['author'] = fullname(get_record('user','id',$blogEntry->userid));
         $template['lastmod'] = userdate($blogEntry->lastmodified);