mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
fix SQL error creating new mail-user, if username contains non-ascii chars
This commit is contained in:
parent
250ffebb22
commit
802c4973a0
@ -320,11 +320,11 @@ class Sql extends Mail\Smtp
|
|||||||
// set mailbox address, if not yet set
|
// set mailbox address, if not yet set
|
||||||
elseif (!$_forwarding_only && empty($mailbox))
|
elseif (!$_forwarding_only && empty($mailbox))
|
||||||
{
|
{
|
||||||
$flags[self::TYPE_MAILBOX] = $this->mailbox_addr(array(
|
$flags[self::TYPE_MAILBOX] = Api\Translation::to_ascii($this->mailbox_addr(array(
|
||||||
'account_id' => $_uidnumber,
|
'account_id' => $_uidnumber,
|
||||||
'account_lid' => $this->accounts->id2name($_uidnumber, 'account_lid'),
|
'account_lid' => $this->accounts->id2name($_uidnumber, 'account_lid'),
|
||||||
'account_email' => $_mailLocalAddress,
|
'account_email' => $_mailLocalAddress,
|
||||||
));
|
)));
|
||||||
}
|
}
|
||||||
// store all new values
|
// store all new values
|
||||||
foreach($flags+array(
|
foreach($flags+array(
|
||||||
|
Loading…
Reference in New Issue
Block a user