added patch from Jurgen (thanks!)

This commit is contained in:
pjmattal 2005-06-23 13:02:29 +00:00
parent 422864112d
commit 4666bd8307

View file

@ -164,8 +164,8 @@ if ($_COOKIE["AURSID"]) {
} }
} }
$shcmd = "/bin/sh -c 'mv ".$upload_file." ".$INCOMING_DIR.$pkg_name; $shcmd = "/bin/mv ".$upload_file." ";
$shcmd.= "/".$_FILES["pfile"]["name"]."'"; $shcmd.= escapeshellarg($INCOMING_DIR.$pkg_name."/".$_FILES["pfile"]["name"]);
@exec($shcmd); @exec($shcmd);
# if no error, get list of directory contents and process PKGBUILD # if no error, get list of directory contents and process PKGBUILD