Skip to content

Commit eebaa44

Browse files
committed
Prevent SQL injection
1 parent 56abf9b commit eebaa44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imcger/imgupload/event/main_listener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function set_template_vars()
120120
while ($group_row = $this->db->sql_fetchrow($result_group))
121121
{
122122
// Get extension from image groups
123-
$sql_ary = 'SELECT extension FROM ' . EXTENSIONS_TABLE . ' WHERE group_id = ' . $group_row['group_id'];
123+
$sql_ary = 'SELECT extension FROM ' . EXTENSIONS_TABLE . ' WHERE group_id = ' . (int) $group_row['group_id'];
124124
$result_ext = $this->db->sql_query($sql_ary);
125125

126126
while ($row = $this->db->sql_fetchrow($result_ext))

0 commit comments

Comments
 (0)