From a2e38e9f0aa6ab01d05115850c323c23fe7ec45e Mon Sep 17 00:00:00 2001 From: tianyu Date: Sun, 9 Aug 2015 10:08:36 +0800 Subject: [PATCH] Update rm.php --- net/rm/rm.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {