Skip to content

Commit 62cee1f

Browse files
committed
warning SQL injection
1 parent f5243bb commit 62cee1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imcger/imgupload/event/main_listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function set_template_vars()
101101
$row = $this->db->sql_fetchrow($result);
102102
$this->db-> sql_freeresult();
103103

104-
$sql = 'SELECT extension FROM ' . EXTENSIONS_TABLE . ' WHERE group_id = ' . $row["group_id"];
104+
$sql = 'SELECT extension FROM ' . EXTENSIONS_TABLE . ' WHERE group_id = ' . (int) $row["group_id"];
105105
$result = $this->db->sql_query($sql);
106106

107107
while ($row = $this->db->sql_fetchrow($result))

0 commit comments

Comments
 (0)