From: hickert Date: Fri, 27 Aug 2010 12:47:17 +0000 (+0000) Subject: Added escapeshellargs for security reasons X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=daf1d07ee5f2c95655ef7873ec9debaec911570e;p=gosa.git Added escapeshellargs for security reasons git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19476 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); } }