We don't have to test for the php-zip extension anymore. Instead, we test for "Phar" (which seems to be there by default on most systems)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2017-10-07 14:36:16 +02:00
parent 5b47e9caa5
commit 02807730ee
2 changed files with 5 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ if(isset($_POST["action"]))
die("The file you are trying to upload is not a .tar.gz file (filename: ".htmlentities($filename).", type: ".htmlentities($type)."). Please try again.");
}
$fullfilename = sys_get_temp_dir().$filename;
$fullfilename = sys_get_temp_dir()."/".$filename;
if(!move_uploaded_file($source, $fullfilename))
{
die("Failed moving ".htmlentities($source)." to ".htmlentities($fullfilename));