Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sanitize submitted numerical values
  • Loading branch information
skodak committed May 26, 2006
1 parent 3f19bff commit 27e51df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/forum/lib.php
Expand Up @@ -111,6 +111,10 @@ function forum_add_instance($forum) {
$forum->assesstimefinish = 0;
}

//sanitize given values a bit
$forum->warnafter = clean_param($forum->warnafter, PARAM_INT);
$forum->blockafter = clean_param($forum->blockafter, PARAM_INT);

if (! $forum->id = insert_record('forum', $forum)) {
return false;
}
Expand Down

0 comments on commit 27e51df

Please sign in to comment.