Added missing quotes in SQL queries.

This commit is contained in:
Leendert Bottelberghs 2004-08-12 12:53:11 +00:00
parent b035ff63f5
commit 9f3de99946

View file

@ -1096,7 +1096,7 @@ sub getForumTemplateVars {
$var{"thread.replies.label"} = WebGUI::International::get(1016);
$var{'thread.rating.label'} = WebGUI::International::get(1020);
$var{"thread.last.label"} = WebGUI::International::get(1017);
my $query = "select * from forumThread where forumId=".$forum->get("forumId")." and ";
my $query = "select * from forumThread where forumId=".quote($forum->get("forumId"))." and ";
if ($forum->isModerator) {
$query .= "(status='approved' or status='pending')";
} else {