fix(validation): enforce url validation for instance domain (#8078)

This commit is contained in:
ShadowArcanist
2026-02-03 22:00:12 +01:00
committed by GitHub
parent ed0002524e
commit e57cc16b91
2 changed files with 10 additions and 3 deletions

View File

@@ -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');