1
1
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:
Dane Everitt 2016-01-03 23:24:30 -05:00
parent 4fe4881f77
commit 7314e70372

View File

@ -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.