]> git.mjollnir.org Git - moodle.git/commitdiff
fix for 5256
authortoyomoyo <toyomoyo>
Thu, 20 Apr 2006 02:26:23 +0000 (02:26 +0000)
committertoyomoyo <toyomoyo>
Thu, 20 Apr 2006 02:26:23 +0000 (02:26 +0000)
blog/edit.php

index c44f10fd8735c3a3ff7b4db0d7d5d51eca443df1..5e8ef8f9be5b1b60f33b5be6d2eb6786f2239b30 100755 (executable)
@@ -115,7 +115,7 @@ if ($editid) {  // User is editing a post
     $blogEntry = get_record('post','id',$editid);
 
     //using an unformatted entry body here so that extra formatting information is not stored in the db
-    $post->body = $blogEntry->summary;
+    $post->body = stripslashes_safe($blogEntry->summary);
     $post->etitle = stripslashes_safe($blogEntry->subject);
     $post->postid = $editid;
     $post->userid = $blogEntry->userid;