Phan fixes with smarty class and file uploader class

This commit is contained in:
Clemens Schwaighofer
2020-01-22 15:48:34 +09:00
parent f7db84c62f
commit e46d0fa4a4
2 changed files with 27 additions and 24 deletions

View File

@@ -84,7 +84,7 @@ class qqFileUploader
$pathinfo = pathinfo($this->file->getName());
$filename = $pathinfo['filename'];
//$filename = md5(uniqid());
$ext = $pathinfo['extension'];
$ext = $pathinfo['extension'] ?? '';
if ($this->allowedExtensions && !in_array(strtolower($ext), $this->allowedExtensions)) {
$these = implode(', ', $this->allowedExtensions);