New command and bugfixes

New function /delshorten added, some minor bugfixes on other commands (see https://areait.runpolito.it/bugtracker/view.php?id=2 )
This commit is contained in:
CM
2021-04-23 01:45:17 +02:00
parent ace990e449
commit 6aef81f576
3 changed files with 151 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ class UploadCommand extends UserCommand
$newfilename = strtoupper(uniqid()) . '.' . end($temp);
if(rename($tempfile, $path."/".$newfilename))
{
// if($clamav->scan("/ssda1/www/portal.runpolito.it/lib/tmp/".$newfilename))
// if($clamav->scan("".$newfilename))
// {
$mime = mime_content_type($path."/".$newfilename);
$extp = explode("/", $mime);