summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83362dc)
raw | patch | inline | side by side (parent: 83362dc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Aug 2010 12:47:09 +0000 (12:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Aug 2010 12:47:09 +0000 (12:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19473 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_plugin.inc | patch | blob | history |
index f089bc5279bc0df09bd97ca52d4ea1fd144b20ec..42e2a4422d4e681d823eac55fb15557aa98c0126 100644 (file)
/* Additional attributes */
foreach ($tmp as $name => $len){
$value = $add_attrs[$name];
- $command= str_replace("%$name", "$value", $command);
+ $command= str_replace("%$name", escapeshellarg($value), $command);
}
if (check_command($command)){
/* Additional attributes */
foreach ($tmp as $name => $len){
$value = $add_attrs[$name];
- $command= str_replace("%$name", "$value", $command);
+ $command= str_replace("%$name", escapeshellarg($value), $command);
}
if (check_command($command)){
/* Additional attributes */
foreach ($tmp as $name => $len){
$value = $add_attrs[$name];
- $command= str_replace("%$name", "$value", $command);
+ $command= str_replace("%$name", escapeshellarg($value), $command);
}
if (check_command($command)){
if(!is_string($value) && !is_int($value) && !is_float($value) && !is_bool($value)){
continue;
}
- $command= preg_replace("/%$name/", $value, $command);
+ $command= preg_replace("/%$name/", escapeshellarg($value), $command);
}
}