mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:38:54 +01:00
fix SQL error creating new mail-user, if username contains non-ascii chars
This commit is contained in:
parent
2f664b1d0a
commit
5e416aca55
@ -320,11 +320,11 @@ class Sql extends Mail\Smtp
|
||||
// set mailbox address, if not yet set
|
||||
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_lid' => $this->accounts->id2name($_uidnumber, 'account_lid'),
|
||||
'account_email' => $_mailLocalAddress,
|
||||
));
|
||||
)));
|
||||
}
|
||||
// store all new values
|
||||
foreach($flags+array(
|
||||
|
Loading…
Reference in New Issue
Block a user