From: Vsevolod Stakhov Date: Mon, 6 Aug 2018 13:05:40 +0000 (+0100) Subject: [Minor] Fix parsing of the escaped '#' in maps X-Git-Tag: 1.8.0~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7f24a30034e5717c07da3df2d3010a20faac380;p=thirdparty%2Frspamd.git [Minor] Fix parsing of the escaped '#' in maps --- diff --git a/src/libutil/map_helpers.c b/src/libutil/map_helpers.c index 6c8117cff3..c43c23277a 100644 --- a/src/libutil/map_helpers.c +++ b/src/libutil/map_helpers.c @@ -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;