mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +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
|
// Validate Fields
|
||||||
$validator = Validator::make($data, [
|
$validator = Validator::make($data, [
|
||||||
'owner' => 'email|exists:users,email',
|
'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.
|
// Run validator, throw catchable and displayable exception if it fails.
|
||||||
|
|||||||
Reference in New Issue
Block a user