diff --git a/net/rm/rm.php b/net/rm/rm.php index 8cdacea..69d3d70 100644 --- a/net/rm/rm.php +++ b/net/rm/rm.php @@ -1,5 +1,9 @@ >/tmp/out.txt 2>&1 &"); foreach ($files as $file) { - shell_exec("cd /home/downloads;rm ./'".$file."' >>/tmp/rm.txt 2>&1 &"); + shell_exec("cd /home/downloads;rm -- ".escapeshellarg($file)." >>/tmp/rm.txt 2>&1 &"); } exit; } else {