|
|
@ -18,7 +18,7 @@ foreach($output as $tag){ |
|
|
|
$count = ""; |
|
|
|
$return = 0; |
|
|
|
|
|
|
|
exec($tmsu . "files -c '" . addcslashes($tag, '(..)') . "' 2>&1", $count, $return); |
|
|
|
exec($tmsu . "files -c " . escape_cmd($tag) . " 2>&1", $count, $return); |
|
|
|
|
|
|
|
if($return !== 0){ |
|
|
|
$message = 'Could not execute deletion command: "' . $count[0] . '"'; |
|
|
@ -27,7 +27,7 @@ foreach($output as $tag){ |
|
|
|
|
|
|
|
if(intval($count[0]) == 0){ |
|
|
|
$output = ""; |
|
|
|
exec($tmsu . "delete " . $tag, $output); |
|
|
|
exec($tmsu . "delete " . escape_cmd($tag), $output); |
|
|
|
|
|
|
|
$deleted_tags .= $tag . " "; |
|
|
|
} |
|
|
|