From: Aki Tuomi Date: Mon, 12 Sep 2016 06:47:26 +0000 (+0300) Subject: doveconf: Hide any _api_key X-Git-Tag: 2.2.26~272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63648d35ce915cc43adbb7a2f9c7f8882229b1a3;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Hide any _api_key --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 1b5ce02734..dd7f1c3310 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -305,7 +305,8 @@ config_dump_human_output(struct config_dump_human_context *ctx, o_stream_nsend_str(output, " = "); if (hide_passwords && value[1] != '\0' && ((value-key > 9 && strncmp(value-9, "_password", 9) == 0) || - strncmp(key, "ssl_key",7) == 0)) { + (value-key > 8 && strncmp(value-8, "_api_key", 8) == 0) || + strncmp(key, "ssl_key",7) == 0)) { o_stream_nsend_str(output, " # hidden, use -P to show it"); } else if (!value_need_quote(value+1)) o_stream_nsend_str(output, value+1);