]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Hide any _api_key
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 12 Sep 2016 06:47:26 +0000 (09:47 +0300)
committerGitLab <gitlab@git.dovecot.net>
Mon, 12 Sep 2016 08:48:05 +0000 (11:48 +0300)
src/config/doveconf.c

index 93601583e694fa4693bf06fcfc801522d8eeb5a3..d79fc690eb96d5b79652a5cc5f64e096fa99e41f 100644 (file)
@@ -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);