Skip to content

Commit

Permalink
lib-sieve: store action: Sanitize both specified and virtual mailbox …
Browse files Browse the repository at this point in the history
…names in log strings.

Before, the virtual mailbox name was not sanitized, which caused control
characters to be displayed in log messages. Also, the mailbox name would be
mentioned twice in the log message, once santized and once unsanitized.
  • Loading branch information
stephanbosch committed Mar 5, 2018
1 parent 2ca90d1 commit c5fc1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-sieve/sieve-actions.c
Expand Up @@ -607,7 +607,7 @@ static void act_store_log_status
mailbox_name = str_sanitize(trans->context->mailbox, 128);

if ( trans->box != NULL ) {
const char *mailbox_vname = mailbox_get_vname(trans->box);
const char *mailbox_vname = str_sanitize(mailbox_get_vname(trans->box), 128);

if ( strcmp(mailbox_name, mailbox_vname) != 0 )
mailbox_name =
Expand Down

0 comments on commit c5fc1b0

Please sign in to comment.