mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 12:23:44 +02:00
Fix a regex bug when trying to modify server key
This commit is contained in:
@@ -281,7 +281,7 @@ class ServerRepository
|
||||
// Validate Fields
|
||||
$validator = Validator::make($data, [
|
||||
'owner' => 'email|exists:users,email',
|
||||
'name' => 'regex:^([\w -]{4,35})$'
|
||||
'name' => 'regex:([\w -]{4,35})'
|
||||
]);
|
||||
|
||||
// Run validator, throw catchable and displayable exception if it fails.
|
||||
|
||||
Reference in New Issue
Block a user