[sr-dev] [kamailio/kamailio] uri.param and param.value error when last character is delimiter (#1991)
Daniel-Constantin Mierla
notifications at github.com
Tue Jun 25 17:05:38 CEST 2019
>From where did you get such URI? Because, afaik, by specs/RFC grammar, the uri must not be terminated by `;` -- the last param value must be left without `;`.
I haven't implemented the parser for uri+params, but that's what I understood from the developer long time ago. I know that for some some modparams that use the uri-params parser, I had to check if the last char is `;` and skip it when passing the value to the parser to avoid loosing the checks of the parser to break specs requirements.
The solution right now is to check the last char in such value and skip it using other string transformations such as s.substr.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1991#issuecomment-505486781
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190625/b0c44010/attachment.html>
More information about the sr-dev
mailing list