mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
Adds missing values to alias INSERT statement.
public_comment and private_comments were missing from the VALUES array in PDO prepare statement.
This commit is contained in:
parent
a1baf2112b
commit
6f7e47ee40
@ -604,7 +604,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
return false;
|
||||
}
|
||||
$stmt = $pdo->prepare("INSERT INTO `alias` (`address`, `public_comment`, `private_comment`, `goto`, `domain`, `active`)
|
||||
VALUES (:address, :goto, :domain, :active)");
|
||||
VALUES (:address, :public_comment, :private_comment, :goto, :domain, :active)");
|
||||
if (!filter_var($address, FILTER_VALIDATE_EMAIL) === true) {
|
||||
$stmt->execute(array(
|
||||
':address' => '@'.$domain,
|
||||
|
Loading…
Reference in New Issue
Block a user