}
id = strtoul (idstr->str, &errstr, 10);
- if (*errstr != '\0' && *errstr != '\n') {
+ if (*errstr != '\0' && !g_acsii_isspace (*errstr)) {
msg_info ("invalid map id");
rspamd_controller_send_error (conn_ent, 400, "400 invalid map id");
return 0;
}
id = strtoul (idstr->str, &errstr, 10);
- if (*errstr != '\0' && *errstr != '\r') {
+ if (*errstr != '\0' && g_acsii_isspace (*errstr)) {
msg_info ("invalid map id");
rspamd_controller_send_error (conn_ent, 400, "Map id is invalid");
return 0;