mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 06:28:28 +03:00
Bugfix: connect settings stripLogin domain failed
This commit is contained in:
parent
daf0f089b8
commit
326d35eee7
1 changed files with 1 additions and 7 deletions
|
|
@ -98,13 +98,7 @@ class ConnectSettings implements \JsonSerializable
|
|||
// Strip certain characters
|
||||
if ($this->stripLogin) {
|
||||
$value = \explode('@', $value);
|
||||
if (isset($value[1])) {
|
||||
$domain = \array_pop($value);
|
||||
}
|
||||
$value = \str_replace(\str_split($this->stripLogin), '', $value);
|
||||
if (isset($value[1])) {
|
||||
$value[] = $domain;
|
||||
}
|
||||
$value[0] = \str_replace(\str_split($this->stripLogin), '', $value[0]);
|
||||
$value = \implode('@', $value);
|
||||
}
|
||||
return $value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue