]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix parsing of commas
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Aug 2016 11:57:37 +0000 (12:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Aug 2016 11:57:37 +0000 (12:57 +0100)
src/controller.c

index aecb6771f462c3662c43daf72450a0607e5c723a..99c81b95b19070c92ddcdfdf699dcf677303b501 100644 (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 ++;
                        }
                }