From: Vsevolod Stakhov Date: Wed, 10 Jan 2018 19:22:31 +0000 (+0000) Subject: [Minor] Do not propagate command name to error output X-Git-Tag: 1.6.6~3^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2000%2Fhead;p=rspamd.git [Minor] Do not propagate command name to error output Issue: #1979 --- diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 6e5a60a72..cd06c59af 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -197,8 +197,7 @@ rspamd_protocol_handle_url (struct rspamd_task *task, return TRUE; err: - g_set_error (&task->err, rspamd_protocol_quark(), 400, "invalid command: %.*s", - (gint)pathlen, p); + g_set_error (&task->err, rspamd_protocol_quark(), 400, "invalid command"); return FALSE; }