From f261b7be95ce01d256b9019b5727dce2224180c1 Mon Sep 17 00:00:00 2001 From: Louis Rossouw Date: Tue, 14 Jul 2015 23:34:35 +0200 Subject: [PATCH] Escape values passed to query. --- includes/polling/unix-agent.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/unix-agent.inc.php b/includes/polling/unix-agent.inc.php index 45cba55e7..174973383 100644 --- a/includes/polling/unix-agent.inc.php +++ b/includes/polling/unix-agent.inc.php @@ -121,7 +121,7 @@ if ($device['os_group'] == 'unix') { if ($values != "") { $values .= ","; } - $values .= "('".$device['device_id']."','".$pid."','".$user."','".$vsz."','".$rss."','".$cputime."','".$command."')"; + $values .= "('".mres($device['device_id'])."','".mres($pid)."','".mres($user)."','".mres($vsz)."','".mres($rss)."','".mres($cputime)."','".mres($command)."')"; } } if ($values != "") {