mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 08:24:39 -04:00
Set portal domain to lower case
This commit is contained in:
parent
4d8ef04247
commit
cd269883f3
@ -81,6 +81,9 @@ class StoreCompanyRequest extends Request
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists('portal_domain', $input))
|
||||
$input['portal_domain'] = strtolower($input['portal_domain']);
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
}
|
||||
|
@ -68,8 +68,10 @@ class UpdateCompanyRequest extends Request
|
||||
{
|
||||
$input = $this->all();
|
||||
|
||||
if(Ninja::isHosted() && array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1)
|
||||
if(Ninja::isHosted() && array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1){
|
||||
$input['portal_domain'] = $this->addScheme($input['portal_domain']);
|
||||
$input['portal_domain'] = strtolower($input['portal_domain']);
|
||||
}
|
||||
|
||||
if (array_key_exists('settings', $input)) {
|
||||
$input['settings'] = $this->filterSaveableSettings($input['settings']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user