lowercase domainnames when adding new (sub)domain to avoid issues with certificates on filesystem

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-12-11 20:12:51 +01:00
parent 466c09137b
commit 63d915804a
4 changed files with 7 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ class DomainsTest extends TestCase
))->get();
$customer_userdata = json_decode($json_result, true)['data'];
$data = [
'domain' => 'test.local',
'domain' => 'TEST.local',
'customerid' => $customer_userdata['customerid'],
'override_tls' => 1,
'ssl_protocols' => array(

View File

@@ -28,7 +28,7 @@ class SubDomainsTest extends TestCase
$customer_userdata = json_decode($json_result, true)['data'];
$data = [
'subdomain' => 'mysub',
'subdomain' => 'mySub',
'domain' => 'test2.local'
];
$json_result = SubDomains::getLocal($customer_userdata, $data)->add();
@@ -47,7 +47,7 @@ class SubDomainsTest extends TestCase
$reseller_userdata['adminsession'] = 1;
$data = [
'subdomain' => 'mysub2',
'subdomain' => 'mySub2',
'domain' => 'test2.local',
'customerid' => 1
];