Mercurial > dovecot > core-2.2
changeset 21896:db6da4cbd052
imap: Set command reason strings using the new human_args
This way the reason string is already suitable for logging, since it's
guaranteed to be valid UTF-8 without control chars.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 04 Apr 2017 15:59:04 +0300 |
parents | 76327526ee5c |
children | 3b71e7b69d1c |
files | src/imap/imap-commands-util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-commands-util.c Tue Apr 04 15:58:42 2017 +0300 +++ b/src/imap/imap-commands-util.c Tue Apr 04 15:59:04 2017 +0300 @@ -135,7 +135,7 @@ const char *imap_client_command_get_reason(struct client_command_context *cmd) { return cmd->args[0] == '\0' ? cmd->name : - t_strdup_printf("%s %s", cmd->name, cmd->args); + t_strdup_printf("%s %s", cmd->name, cmd->human_args); } void imap_transaction_set_cmd_reason(struct mailbox_transaction_context *trans,