]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix issue with spaces in maps
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 Aug 2016 15:28:05 +0000 (16:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 Aug 2016 15:39:55 +0000 (16:39 +0100)
src/libutil/map.c

index b3bb8dc2ce61476dd5d6e9d9e0e63aa713c0b97f..b29cc2e81fa74eac258048b33948fc2752ec128b 100644 (file)
@@ -1658,7 +1658,7 @@ rspamd_parse_kv_list (
                        data->state = map_read_key_slashed;
                        break;
                case map_skip_spaces_after_key:
-                       if (g_ascii_isspace (*p)) {
+                       if (*p == ' ' || *p == '\t') {
                                p ++;
                        }
                        else {