Prevent domain uppercase issues

https://github.com/the-djmaze/snappymail/issues/689#issuecomment-1324091032
This commit is contained in:
the-djmaze 2022-11-23 11:08:48 +01:00
parent 288e1c8742
commit 6d4f626cd6

View file

@ -57,7 +57,7 @@ class Domain extends AbstractProvider
public function LoadOrCreateNewFromAction(\RainLoop\Actions $oActions, string $sNameForTest = null) : ?\RainLoop\Model\Domain
{
$sName = (string) $oActions->GetActionParam('Name', '');
$sName = \mb_strtolower((string) $oActions->GetActionParam('Name', ''));
if (\strlen($sName) && $sNameForTest && !\str_contains($sName, '*')) {
$sNameForTest = null;
}