mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 10:32:31 +01:00
Fix a regex bug when trying to modify server key
This commit is contained in:
parent
4fe4881f77
commit
7314e70372
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user