]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Allow keys and values be separated by newlines.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 7 Aug 2013 16:21:53 +0000 (17:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 7 Aug 2013 16:21:53 +0000 (17:21 +0100)
src/rcl/rcl_parser.c

index 6fec676237ce208e4e5d6a1d92f44e8512e0ce65..ad15a1f2a2633fce60dafea6e19f8a8d27f0ca89 100644 (file)
@@ -326,7 +326,7 @@ rspamd_cl_parse_key (struct rspamd_cl_parser *parser,
 
        /* We are now at the end of the key, need to parse the rest */
        while (p < chunk->end) {
-               if (*p == ' ' || *p == '\t') {
+               if (g_ascii_isspace (*p)) {
                        rspamd_cl_chunk_skipc (chunk, *p);
                        p ++;
                }