mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix exception thrown due to lack of pre-validation on the model.
closes #1158
This commit is contained in:
@@ -26,7 +26,7 @@ class StoreServerDatabaseRequest extends ApplicationApiRequest
|
||||
{
|
||||
return [
|
||||
'database' => 'required|string|min:1|max:24',
|
||||
'remote' => 'required|string|min:1',
|
||||
'remote' => 'required|string|regex:/^[0-9%.]{1,15}$/',
|
||||
'host' => 'required|integer|exists:database_hosts,id',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user