Skip to content

Commit

Permalink
Don't use stripslashes on data coming from database
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Oct 7, 2006
1 parent c0e1926 commit 1ca20e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blog/edit.php
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1ca20e0

Please sign in to comment.