From 8336ea01588f1a20128a183be3a4cea5ca3d69a6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 10 Jan 2018 19:22:31 +0000 Subject: [PATCH] [Minor] Do not propagate command name to error output Issue: #1979 --- src/libserver/protocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5