Bugfix: connect settings stripLogin domain failed

This commit is contained in:
the-djmaze 2024-04-15 00:22:48 +02:00
parent daf0f089b8
commit 326d35eee7

View file

@ -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;