From 1ca20e0272ea0adaeceb0d59ea023b0463d22077 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 7 Oct 2006 17:18:15 +0000 Subject: [PATCH] Don't use stripslashes on data coming from database --- blog/edit.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } } -- 2.39.5