From: gustav_delius Date: Sat, 7 Oct 2006 17:18:15 +0000 (+0000) Subject: Don't use stripslashes on data coming from database X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1ca20e0272ea0adaeceb0d59ea023b0463d22077;p=moodle.git Don't use stripslashes on data coming from database --- diff --git a/blog/edit.php b/blog/edit.php index 16bd106803..ec67d0d62c 100755 --- a/blog/edit.php +++ b/blog/edit.php @@ -255,12 +255,12 @@ function add_tags_info($postid) { $tag = new object(); $tag->entryid = $post->id; $tag->userid = $post->userid; - $tag->timemodified = time(); - - /// Add tags information - if ($otags = optional_param('otags','', PARAM_INT)) { - foreach ($otags as $otag) { - $tag->tagid = $otag; + $tag->timemodified = time(); + + /// Add tags information + if ($otags = optional_param('otags','', PARAM_INT)) { + foreach ($otags as $otag) { + $tag->tagid = $otag; insert_record('blog_tag_instance', $tag); } }