mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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
|
// Strip certain characters
|
||||||
if ($this->stripLogin) {
|
if ($this->stripLogin) {
|
||||||
$value = \explode('@', $value);
|
$value = \explode('@', $value);
|
||||||
if (isset($value[1])) {
|
$value[0] = \str_replace(\str_split($this->stripLogin), '', $value[0]);
|
||||||
$domain = \array_pop($value);
|
|
||||||
}
|
|
||||||
$value = \str_replace(\str_split($this->stripLogin), '', $value);
|
|
||||||
if (isset($value[1])) {
|
|
||||||
$value[] = $domain;
|
|
||||||
}
|
|
||||||
$value = \implode('@', $value);
|
$value = \implode('@', $value);
|
||||||
}
|
}
|
||||||
return $value;
|
return $value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue