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

*/ */
comma = rspamd_memrchr (hdr->begin, ',', hdr->len); comma = rspamd_memrchr (hdr->begin, ',', hdr->len);
if (comma != NULL) { 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 ++; comma ++;
} }
} }

Loading…
Cancel
Save