Parcourir la source

[Fix] Fix parsing of commas

tags/1.3.4
Vsevolod Stakhov il y a 7 ans
Parent
révision
e69b5b5bb0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      src/controller.c

+ 2
- 1
src/controller.c Voir le fichier

@@ -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 ++;
}
}

Chargement…
Annuler
Enregistrer