Bug 274858. Add New Item breaks after upload, after trying to write to hardcoded non-existant temp path.

This commit is contained in:
psychoticwolf%carolina.rr.com 2004-12-16 10:19:41 +00:00
Родитель b81eff6449
Коммит 2b1fa359b2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) {