Module: kamailio
Branch: master
Commit: d4ef9f268fd1b645fc1846db1fd7a6e814792921
URL:
https://github.com/kamailio/kamailio/commit/d4ef9f268fd1b645fc1846db1fd7a6e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-25T12:48:28+02:00
core: parse_param2() - continue if the separator matches comma or bracket
---
Modified: src/core/parser/parse_param.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d4ef9f268fd1b645fc1846db1fd7a6e…
Patch:
https://github.com/kamailio/kamailio/commit/d4ef9f268fd1b645fc1846db1fd7a6e…
---
diff --git a/src/core/parser/parse_param.c b/src/core/parser/parse_param.c
index 698c0a9b47d..b7df14d9f88 100644
--- a/src/core/parser/parse_param.c
+++ b/src/core/parser/parse_param.c
@@ -508,9 +508,9 @@ static inline int parse_param2(
t->len = t->name.len;
}
- if(_s->s[0] == ',')
+ if(separator != ',' && _s->s[0] == ',')
goto ok; /* To be able to parse header parameters */
- if(_s->s[0] == '>')
+ if(separator != '>' && _s->s[0] == '>')
goto ok; /* To be able to parse URI parameters */
if(_s->s[0] != separator) {