Skip to content

Commit 65ad343

Browse files
author
Marius Cramer
committed
- improved input validation
1 parent 373e881 commit 65ad343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/functions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function suggest_ips($type = 'IPv4'){
248248
}
249249

250250
$ips = array();
251-
$results = $app->db->queryAllRecords("SELECT ip_address AS ip, server_id FROM server_ip WHERE ip_type = '".$type."'");
251+
$results = $app->db->queryAllRecords("SELECT ip_address AS ip, server_id FROM server_ip WHERE ip_type = '".$app->db->quote($type)."'");
252252
if(!empty($results) && is_array($results)){
253253
foreach($results as $result){
254254
if(preg_match($regex, $result['ip'])){

0 commit comments

Comments
 (0)