]> 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)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 12 Sep 2016 12:23:04 +0000 (15:23 +0300)
src/config/doveconf.c

index 1b5ce02734eaff6f4206f39b506a26a43bd96613..dd7f1c3310459b99211a9d6cf12a939e1d02cc8a 100644 (file)
@@ -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);