From f7e0ccafc3746d1d2dfd674e2ee05f5947bf7da0 Mon Sep 17 00:00:00 2001 From: "psychoticwolf%carolina.rr.com" Date: Thu, 16 Dec 2004 10:19:41 +0000 Subject: [PATCH] Bug 274858. Add New Item breaks after upload, after trying to write to hardcoded non-existant temp path. git-svn-id: svn://10.0.0.236/trunk@166782 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/update/developers/additem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/update/developers/additem.php b/mozilla/webtools/update/developers/additem.php index 03ec7e3a9a6..21a551f7a69 100755 --- a/mozilla/webtools/update/developers/additem.php +++ b/mozilla/webtools/update/developers/additem.php @@ -51,7 +51,7 @@ if ($status==0) {$statusresult="Success!"; } else if ($status==4) {$statusresult="Error: No File Was Uploaded"; } $manifest_exists = "FALSE"; -$destination = "$websitepath/files/temp/$filename"; +$destination = "$repositorypath/temp/$filename"; if (move_uploaded_file($uploadedfile, $destination)) { $uploadedfile = $destination; $chmod_result = chmod("$uploadedfile", 0644); //Make the file world readable. prevent nasty permissions issues. @@ -61,7 +61,7 @@ $chmod_result = chmod("$uploadedfile", 0644); //Make the file world readable. pr if ($_POST["legacy"]=="TRUE") { $filename = escape_string($_POST["filename"]); $filesize = escape_string($_POST["filesize"]); -$uploadedfile="$websitepath/files/temp/$filename"; +$uploadedfile="$repositorypath/temp/$filename"; } $zip = @zip_open("$uploadedfile"); if ($zip) {