mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Merge pull request #683 from drewcsillag/dovecot-master-user
Break username and domain from login on last @ instead of first @
This commit is contained in:
commit
e39249d4d7
1 changed files with 2 additions and 2 deletions
|
|
@ -872,7 +872,7 @@ END;
|
|||
$sResult = '';
|
||||
if (0 < \strlen($sEmail))
|
||||
{
|
||||
$iPos = \strpos($sEmail, '@');
|
||||
$iPos = \strrpos($sEmail, '@');
|
||||
$sResult = (false === $iPos) ? $sEmail : \substr($sEmail, 0, $iPos);
|
||||
}
|
||||
|
||||
|
|
@ -889,7 +889,7 @@ END;
|
|||
$sResult = '';
|
||||
if (0 < \strlen($sEmail))
|
||||
{
|
||||
$iPos = \strpos($sEmail, '@');
|
||||
$iPos = \strrpos($sEmail, '@');
|
||||
if (false !== $iPos && 0 < $iPos)
|
||||
{
|
||||
$sResult = \substr($sEmail, $iPos + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue