mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-23 22:24:18 +02:00
Cast max_hash_size value to an integer
This commit is contained in:
@@ -58,7 +58,7 @@ class FileInfoController
|
||||
return $response->withStatus(404, $this->translator->trans('error.file_not_found'));
|
||||
}
|
||||
|
||||
if ($file->getSize() >= $this->container->get('max_hash_size')) {
|
||||
if ($file->getSize() >= (int) $this->container->get('max_hash_size')) {
|
||||
return $response->withStatus(500, $this->translator->trans('error.file_size_exceeded'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user