[OpenSIPS-Devel] [OpenSIPS/opensips] 9c5394: dialog: Add quotation mark escaping in get_dialogs...
Liviu Chircu
noreply at github.com
Tue Jan 18 15:18:27 UTC 2022
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: 9c53945bdde63060aa476459cb6ec579fb65d43e
https://github.com/OpenSIPS/opensips/commit/9c53945bdde63060aa476459cb6ec579fb65d43e
Author: Liviu Chircu <liviu at opensips.org>
Date: 2022-01-18 (Tue, 18 Jan 2022)
Changed paths:
M modules/dialog/dialog.c
Log Message:
-----------
dialog: Add quotation mark escaping in get_dialogs_by_val()
In case a dialog name/value contained the '"' character (ASCII 34), such
as values stored by pua_dialoginfo, the resulting JSON would be invalid.
Also optimize the function code a bit, by merging lots of
DEC_AND_CHECK_LEN() calls together wherever possible.
Credits to Giovanni Maruzzelli for a detailed reporting on this issue!
(cherry picked from commit 2b6c3239da501ec4d4627c48d58bd723785566ba)
More information about the Devel
mailing list