We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 373e881 commit 65ad343Copy full SHA for 65ad343
1 file changed
interface/lib/classes/functions.inc.php
@@ -248,7 +248,7 @@ public function suggest_ips($type = 'IPv4'){
248
}
249
250
$ips = array();
251
- $results = $app->db->queryAllRecords("SELECT ip_address AS ip, server_id FROM server_ip WHERE ip_type = '".$type."'");
+ $results = $app->db->queryAllRecords("SELECT ip_address AS ip, server_id FROM server_ip WHERE ip_type = '".$app->db->quote($type)."'");
252
if(!empty($results) && is_array($results)){
253
foreach($results as $result){
254
if(preg_match($regex, $result['ip'])){
0 commit comments