diff options
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgsubmit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 560d972..ca1bf9f 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -164,8 +164,8 @@ if ($_COOKIE["AURSID"]) { } } - $shcmd = "/bin/sh -c 'mv ".$upload_file." ".$INCOMING_DIR.$pkg_name; - $shcmd.= "/".$_FILES["pfile"]["name"]."'"; + $shcmd = "/bin/mv ".$upload_file." "; + $shcmd.= escapeshellarg($INCOMING_DIR.$pkg_name."/".$_FILES["pfile"]["name"]); @exec($shcmd); # if no error, get list of directory contents and process PKGBUILD |