You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
count($pathSegments) === 2 does never be true because there is only one element in the array, I fixed with the following (Classes/Service/UploadFileService.php, line 91):
count($pathSegments) === 2 does never be true because there is only one element in the array, I fixed with the following (Classes/Service/UploadFileService.php, line 91):
if (count($pathSegments) === 2 && strpos($uploadedFileName, '..') === false) { $sanitizedFileNameAndPath = UploadManager::UPLOAD_FOLDER . $pathSegments[1]; }
elseif (count($pathSegments) === 1 && strpos($uploadedFileName, '..') === false) { $sanitizedFileNameAndPath = UploadManager::UPLOAD_FOLDER . $pathSegments[0]; }
The text was updated successfully, but these errors were encountered: