Skip to content
Snippets Groups Projects
Commit dadedf97 authored by Stephan Bosch's avatar Stephan Bosch Committed by Timo Sirainen
Browse files

lib-sieve: store action: Sanitize both specified and virtual mailbox 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.
parent 19e012ee
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.