mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 15:20:40 +00:00
fix(validation): enforce url validation for instance domain (#8078)
This commit is contained in:
@@ -14,7 +14,7 @@ class Index extends Component
|
||||
|
||||
public ?Server $server = null;
|
||||
|
||||
#[Validate('nullable|string|max:255')]
|
||||
#[Validate('nullable|string|max:255|url')]
|
||||
public ?string $fqdn = null;
|
||||
|
||||
#[Validate('required|integer|min:1025|max:65535')]
|
||||
@@ -46,6 +46,11 @@ class Index extends Component
|
||||
|
||||
public $buildActivityId = null;
|
||||
|
||||
protected array $messages = [
|
||||
'fqdn.url' => 'Invalid instance URL.',
|
||||
'fqdn.max' => 'URL must not exceed 255 characters.',
|
||||
];
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.settings.index');
|
||||
|
||||
Reference in New Issue
Block a user