mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-02 14:07:49 +09:00
fix: validate icons to be images (#1167)
This commit is contained in:
@@ -77,6 +77,10 @@ class SettingsController extends Controller
|
||||
}
|
||||
|
||||
if ($setting->type === 'image') {
|
||||
$validatedData = $request->validate([
|
||||
'value' => 'image'
|
||||
]);
|
||||
|
||||
if (!$request->hasFile('value')) {
|
||||
throw new \Exception(
|
||||
'file_too_big'
|
||||
|
||||
Reference in New Issue
Block a user