diff options
author | pjmattal <pjmattal> | 2005-06-23 13:02:29 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2005-06-23 13:02:29 +0000 |
commit | 4666bd8307a5b2716d6e82c3bd47dcd12994b092 (patch) | |
tree | 48d6a9b641eea637e379a6a03a5ac598c02c2735 /web/html/pkgsubmit.php | |
parent | 422864112da9909d1218aabf4e24ed33d95d38da (diff) |
added patch from Jurgen (thanks!)
Diffstat (limited to 'web/html/pkgsubmit.php')
-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 |