From e6111e950ec915285001abdca0bc5b058c76f353 Mon Sep 17 00:00:00 2001 From: lazedo Date: Tue, 7 Nov 2017 10:51:04 +0000 Subject: [PATCH] core : honor parse_param separator fixes the use case when spaces should not be excluded 'BS ParkingTestCase 1' ``` xlog("L_INFO", "$ci|log exploding test\n"); $var(test) = "Notify=false;Unregister=false;Presence-ID=1001@kamailio.io;Account-Name=BS ParkingTestCase 1"; xavp_params_explode($var(test), "mytest"); xlog("L_INFO", "$ci|log exploded test\n"); ``` --- src/core/parser/parse_param.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/parser/parse_param.c b/src/core/parser/parse_param.c index 336bf88a8ac..aa6185407df 100644 --- a/src/core/parser/parse_param.c +++ b/src/core/parser/parse_param.c @@ -348,11 +348,9 @@ static inline int parse_token_param(str *_s, str *_r, char separator) * mark end of the token */ switch(_s->s[i]) { - case ' ': case '\t': case '\r': case '\n': - case ',': /* So if you find * any of them * stop iterating