A free open source IT asset/license management system
Use config array for extensions in restore tool
snipe4db3b3ba0e7b
diff --git a/app/Console/Commands/RestoreFromBackup.php b/app/Console/Commands/RestoreFromBackup.phpindex 35e67a82e7..5765260ecd 100644--- a/app/Console/Commands/RestoreFromBackup.php+++ b/app/Console/Commands/RestoreFromBackup.php@@ -329,9 +329,9 @@ class RestoreFromBackup extends Command}}}- $good_extensions = ['png', 'gif', 'jpg', 'svg', 'jpeg', 'doc', 'docx', 'pdf', 'txt',- 'zip', 'rar', 'xls', 'xlsx', 'lic', 'xml', 'rtf', 'webp', 'key', 'ico', 'avif'- ];++ $good_extensions = config('filesystems.allowed_upload_extensions_array');+foreach (array_merge($private_files, $public_files) as $file) {$has_wildcard = (strpos($file, '*') !== false);if ($has_wildcard) {