From 6f7e47ee403e5217329da3261e25b917fed79d1e Mon Sep 17 00:00:00 2001 From: Guilherme Capanema de Barros Date: Thu, 31 Jan 2019 09:38:18 -0200 Subject: [PATCH] Adds missing values to alias INSERT statement. public_comment and private_comments were missing from the VALUES array in PDO prepare statement. --- data/web/inc/functions.mailbox.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/functions.mailbox.inc.php b/data/web/inc/functions.mailbox.inc.php index 62323645..7166ab6f 100644 --- a/data/web/inc/functions.mailbox.inc.php +++ b/data/web/inc/functions.mailbox.inc.php @@ -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,