From: Aki Tuomi Date: Mon, 12 Sep 2016 06:47:26 +0000 (+0300) Subject: doveconf: Hide any _api_key X-Git-Tag: 2.3.0.rc1~3046 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12f86e86d952a56848d925e6445c36c39b37ba8e;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Hide any _api_key --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 93601583e6..d79fc690eb 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -305,8 +305,9 @@ 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) || + (value-key > 8 && strncmp(value-8, "_api_key", 8) == 0) || strncmp(key, "ssl_key",7) == 0 || - strncmp(key, "ssl_dh",6) == 0)) { + strncmp(key, "ssl_dh",6) == 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);