diff options
Diffstat (limited to 'includes/section.inc')
-rw-r--r-- | includes/section.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/section.inc b/includes/section.inc index 0bebaf026..def72400f 100644 --- a/includes/section.inc +++ b/includes/section.inc @@ -8,17 +8,17 @@ function section_get() { } function section_post_threshold($section, $threshold = 5) { - $result = db_query("SELECT post FROM sections WHERE name = '$section'"); + $result = db_query("SELECT post FROM sections WHERE name = '". check_input($section) ."'"); return ($result) ? db_result($result, 0) : $threshold; } function section_dump_threshold($section, $threshold = - 3) { - $result = db_query("SELECT dump FROM sections WHERE name = '$section'"); + $result = db_query("SELECT dump FROM sections WHERE name = '". check_input($section) ."'"); return ($result) ? db_result($result, 0) : $threshold; } function section_timout_threshold($section, $threshold = 10) { - $result = db_query("SELECT timout FROM sections WHERE name = '$section'"); + $result = db_query("SELECT timout FROM sections WHERE name = '". check_input($section) ."'"); return ($result) ? db_result($result, 0) : $threshold; } |