diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-23 13:17:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-23 13:17:32 +0100 |
commit | a68630753739582e7b920096bd4886965fa39bfd (patch) | |
tree | 59ee41ef5c56c7be790de28e7f58f3a1a2cd7254 | |
parent | 3c1e2d179c6e109ad7c253e6c76ccac9bf912ab0 (diff) | |
download | rspamd-a68630753739582e7b920096bd4886965fa39bfd.tar.gz rspamd-a68630753739582e7b920096bd4886965fa39bfd.zip |
Fix saving maps.
-rw-r--r-- | src/controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c index 3232e1cd8..0c4ca14a8 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1404,8 +1404,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; } |