Cast max_hash_size value to an integer

This commit is contained in:
Chris Kankiewicz
2020-06-16 12:50:29 -07:00
parent 6bcd855ac4
commit 49845d9936

View File

@@ -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'));
}