Skip to content

Commit e8daa4f

Browse files
committed
Fix a possible SQL injection
1 parent 4dd3308 commit e8daa4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload/inc/plugins/isango.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function isango_bridge()
277277

278278
if ($mybb->user['uid'] && $mybb->settings['isango_single_connection']) { // UCP Connection add request. Validate
279279
global $db, $lang;
280-
if ($db->fetch_field($db->simple_select("isango", "COUNT(cid) AS conn", "gateway='" . $gateway . "' AND uid='" . $mybb->user['uid'] . "'"), "conn")) {
280+
if ($db->fetch_field($db->simple_select("isango", "COUNT(cid) AS conn", "gateway='" . $db->escape_string($gateway) . "' AND uid='" . $mybb->user['uid'] . "'"), "conn")) {
281281
error($lang->sprintf($lang->isango_single_connection_error, ucwords($gateway)));
282282
}
283283
}

0 commit comments

Comments
 (0)