fix: validate and sanitize application domains
This commit is contained in:
parent
6ac70d6e1b
commit
d59d8cda2a
1 changed files with 1 additions and 1 deletions
|
|
@ -331,10 +331,10 @@ public function set_redirect()
|
|||
public function submit($showToaster = true)
|
||||
{
|
||||
try {
|
||||
Url::fromString($this->application->fqdn, ['http', 'https']);
|
||||
$this->application->fqdn = str($this->application->fqdn)->replaceEnd(',', '')->trim();
|
||||
$this->application->fqdn = str($this->application->fqdn)->replaceStart(',', '')->trim();
|
||||
$this->application->fqdn = str($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {
|
||||
Url::fromString($domain, ['http', 'https']);
|
||||
return str($domain)->trim()->lower();
|
||||
});
|
||||
$this->application->fqdn = $this->application->fqdn->unique()->implode(',');
|
||||
|
|
|
|||
Loading…
Reference in a new issue