From: toyomoyo Date: Thu, 20 Apr 2006 02:20:32 +0000 (+0000) Subject: but fix for 5256 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0b11c2b70fc26f949daf80cea982ffea466bd3c4;p=moodle.git but fix for 5256 --- diff --git a/blog/edit.php b/blog/edit.php index 39983d1bff..699271ee9d 100755 --- a/blog/edit.php +++ b/blog/edit.php @@ -4,7 +4,6 @@ require_once('../config.php'); include_once('lib.php'); require_login(); -$userid = optional_param('userid', 0, PARAM_INT); $courseid = optional_param('courseid', SITEID, PARAM_INT); $act = optional_param('act','',PARAM_ALPHA); @@ -108,8 +107,6 @@ if (($post = data_submitted( get_referer() )) && confirm_sesskey()) { $post->body = ''; $post->format = $defaultformat; $post->publishstate = 'draft'; - $post->courseid = $courseid; - } if ($editid) { // User is editing a post diff --git a/blog/lib.php b/blog/lib.php index f8b8b9e798..a20596c574 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -122,7 +122,7 @@ global $USER, $CFG, $course, $ME; - $template['body'] = get_formatted_entry_body($blogEntry->summary, $blogEntry->format); + $template['body'] = get_formatted_entry_body(stripslashes_safe($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);