From bb87f55f8773e0888e31dea72008f41a4a258584 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Jun 2015 13:17:32 +0100 Subject: [PATCH] Fix saving maps. --- src/controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller.c b/src/controller.c index 17e323b59..2e2252f3b 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1391,8 +1391,8 @@ rspamd_controller_handle_savemap (struct rspamd_http_connection_entry *conn_ent, } id = strtoul (idstr->str, &errstr, 10); - if (*errstr != '\0' && g_ascii_isspace (*errstr)) { - msg_info ("invalid map id"); + if (*errstr != '\0' && !g_ascii_isspace (*errstr)) { + msg_info ("invalid map id: %V", idstr); rspamd_controller_send_error (conn_ent, 400, "Map id is invalid"); return 0; } -- 2.39.5