Update storage.php
This commit is contained in:
parent
8d3de04791
commit
a6ee3a8071
|
@ -147,13 +147,9 @@ if(!function_exists("remove_storage_file")) {
|
||||||
|
|
||||||
if(file_exists($upload_filename)) {
|
if(file_exists($upload_filename)) {
|
||||||
if(!array_key_empty("shell", $options)) {
|
if(!array_key_empty("shell", $options)) {
|
||||||
loadHelper("exectool");
|
if(loadHelper("exectool")) {
|
||||||
switch($options['shell']) {
|
$exec_cmd = ($options['shell'] == "windows") ? "del '%s'" : "rm -f '%s'";
|
||||||
case "windows":
|
exec_command(sprintf($exec_cmd, make_safe_argument($upload_filename)));
|
||||||
exec_command(sprintf("del '%s'", make_safe_argument($upload_filename)));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
exec_command(sprintf("rm -f '%s'", make_safe_argument($upload_filename)));
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@unlink($upload_filename);
|
@unlink($upload_filename);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user