Browse Source

[Minor] Fix parsing of the escaped '#' in maps

tags/1.8.0
Vsevolod Stakhov 5 years ago
parent
commit
e7f24a3003
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libutil/map_helpers.c

+ 1
- 1
src/libutil/map_helpers.c View File

@@ -150,7 +150,7 @@ rspamd_parse_kv_list (
case map_read_key:
/* read key */
/* Check here comments, eol and end of buffer */
if (*p == '#') {
if (*p == '#' && (p == c || *(p - 1) != '\\')) {
if (p - c > 0) {
/* Store a single key */
MAP_STORE_KEY;

Loading…
Cancel
Save