Skip to content

Commit

Permalink
Fixed possible sql injection in ssi_recentTopics()
Browse files Browse the repository at this point in the history
  • Loading branch information
asd committed Jan 14, 2017
1 parent 4137fe0 commit 11c5122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/SSI.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@ function ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boar
AND {query_wanna_see_board}' . (empty(we::$user['can_skip_approval']) ? '
AND ml.approved = {int:is_approved}' : '') . '
ORDER BY t.id_last_msg DESC
LIMIT ' . $num_recent,
LIMIT {int:num_recent}',
array(
'num_recent' => $num_recent,
'include_boards' => empty($include_boards) ? '' : $include_boards,
'exclude_boards' => empty($exclude_boards) ? '' : $exclude_boards,
'min_message_id' => $settings['maxMsgID'] - 35 * $num_recent,
Expand Down

0 comments on commit 11c5122

Please sign in to comment.