From daf1d07ee5f2c95655ef7873ec9debaec911570e Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 27 Aug 2010 12:47:17 +0000 Subject: [PATCH] Added escapeshellargs for security reasons git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19476 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/services/class_goService.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/services/class_goService.inc b/gosa-plugins/systems/admin/systems/services/class_goService.inc index 1134f1cd7..099bd3a39 100644 --- a/gosa-plugins/systems/admin/systems/services/class_goService.inc +++ b/gosa-plugins/systems/admin/systems/services/class_goService.inc @@ -224,7 +224,7 @@ class goService extends plugin{ $attrs = get_object_vars($this); foreach($attrs as $name => $value){ if(!is_string($value)) continue; - $command= preg_replace("/%$name/", $value, $command); + $command= preg_replace("/%$name/", escapeshellarg($value), $command); } } -- 2.30.2