Mercurial > dovecot > core-2.2
changeset 19217:bf64724225e9
doveconf: Don't if _password value is empty, don't hide it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 24 Sep 2015 20:28:51 +0300 |
parents | 1e4d2306f1f3 |
children | e92af8f36ed0 |
files | src/config/doveconf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/config/doveconf.c Thu Sep 24 19:40:41 2015 +0300 +++ b/src/config/doveconf.c Thu Sep 24 20:28:51 2015 +0300 @@ -302,7 +302,7 @@ value = strchr(key, '='); o_stream_nsend(output, key, value-key); o_stream_nsend_str(output, " = "); - if (hide_passwords && + if (hide_passwords && value[1] != '\0' && value-key > 9 && strncmp(value-9, "_password", 9) == 0) { o_stream_nsend_str(output, " # hidden, use -P to show it"); } else if (!value_need_quote(value+1))