3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-10-29 11:21:21 +00:00

Removed logging

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-08-20 14:11:42 +01:00
parent 618106c103
commit da5b1afd19

View File

@ -96,11 +96,9 @@ class StorageHelper
'webp',
];
\Log::error(pathinfo($file_with_path, PATHINFO_EXTENSION));
// The file exists and is allowed to be displayed inline
if (Storage::exists($file_with_path) && (in_array(pathinfo($file_with_path, PATHINFO_EXTENSION), $allowed_inline))) {
\Log::error('File is allowed inline: ' . $file_with_path);
return true;
}
return false;