Skip to content
Snippets Groups Projects
Commit 65ad3435 authored by Marius Cramer's avatar Marius Cramer
Browse files

- improved input validation

parent 373e8817
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ class functions {
}
$ips = array();
$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)."'");
if(!empty($results) && is_array($results)){
foreach($results as $result){
if(preg_match($regex, $result['ip'])){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment