]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Changed separator between session_id_prefix and unique part to be ':'
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 5 Apr 2016 17:10:53 +0000 (20:10 +0300)
committerGitLab <gitlab@git.dovecot.net>
Thu, 7 Apr 2016 13:29:31 +0000 (16:29 +0300)
Although '-' wasn't used by default either, it's much more likely that
custom session IDs might contain it. ':' is hopefully less likely to be used.
This allows log parsers that actually want to find out the original session's
all log lines to cut out everything after the initial ':'.

src/lib-storage/mail-storage-service.c

index 8aa86f36988151f0482c5722c04f34ad77988e6f..babdab9804dfa121ffc1704c8d044e412e8ad58f 100644 (file)
@@ -1102,7 +1102,7 @@ mail_storage_service_generate_session_id(pool_t pool, const char *prefix)
        string_t *str = str_new(pool, MAX_BASE64_ENCODED_SIZE(prefix_len + 1 + sizeof(guid)));
 
        if (prefix != NULL)
-               str_printfa(str, "%s-", prefix);
+               str_printfa(str, "%s:", prefix);
 
        guid_128_generate(guid);
        base64_encode(guid, sizeof(guid), str);