diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-25 18:35:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-25 18:35:22 +0000 |
commit | 33b38bf654927b41dbff292552fde5ab8bc5cb7b (patch) | |
tree | 571a953421204e46077c6c396adfdb547cc33b00 /src/client | |
parent | 772bfb3d3f3ec2c7e6853a4340709e70296526c0 (diff) | |
download | rspamd-33b38bf654927b41dbff292552fde5ab8bc5cb7b.tar.gz rspamd-33b38bf654927b41dbff292552fde5ab8bc5cb7b.zip |
Tune extended urls output.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/rspamc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 9c2e1976d..393441925 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -494,7 +494,12 @@ rspamc_symbols_output (ucl_object_t *obj) ucl_object_tostring (cur)); } else if (g_ascii_strcasecmp (ucl_object_key (cur), "urls") == 0) { - emitted = ucl_object_emit (cur, UCL_EMIT_JSON_COMPACT); + if (!extended_urls) { + emitted = ucl_object_emit (cur, UCL_EMIT_JSON_COMPACT); + } + else { + emitted = ucl_object_emit (cur, UCL_EMIT_JSON); + } rspamd_fprintf (stdout, "Urls: %s\n", emitted); free (emitted); } |