Browse Source

[Fix] Fix parsing of commas

tags/1.3.4
Vsevolod Stakhov 7 years ago
parent
commit
e69b5b5bb0
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/controller.c

+ 2
- 1
src/controller.c View File

@@ -371,7 +371,8 @@ rspamd_controller_check_forwarded (struct rspamd_controller_session *session,
*/
comma = rspamd_memrchr (hdr->begin, ',', hdr->len);
if (comma != NULL) {
while (comma < hdr->begin + hdr->len && g_ascii_isspace (*comma)) {
while (comma < hdr->begin + hdr->len &&
(*comma == ',' || g_ascii_isspace (*comma))) {
comma ++;
}
}

Loading…
Cancel
Save