From bc207d25cd47e2ebc0a2d603f0414ca97cf94366 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 21 Feb 2011 17:06:47 +0100 Subject: Use move_uploaded_file() instead of rename() in "pkgsubmit.php". Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 9ef90a7..b55a720 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -247,7 +247,7 @@ if ($_COOKIE["AURSID"]): } file_put_contents('PKGBUILD', $pkgbuild_raw); - rename($_FILES['pfile']['tmp_name'], $pkg_name . '.tar.gz'); + move_uploaded_file($_FILES['pfile']['tmp_name'], $pkg_name . '.tar.gz'); } # Update the backend database -- cgit v1.2.3-54-g00ecf