[OpenSIPS-Devel] [OpenSIPS/opensips] a8f964: dialplan: Always set the "attrs" pvar on success; ...
Liviu Chircu
noreply at github.com
Tue Mar 8 12:19:43 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: a8f964c8f565f5fb66797ca7f352e013ec3aa79a
https://github.com/OpenSIPS/opensips/commit/a8f964c8f565f5fb66797ca7f352e013ec3aa79a
Author: Liviu Chircu <liviu at opensips.org>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M modules/dialplan/dialplan.c
M modules/dialplan/doc/dialplan_admin.xml
Log Message:
-----------
dialplan: Always set the "attrs" pvar on success; Improve docs
This patch avoids leaving an untouched "attrs_pvar" variable after a
successful dp_translate(), in case the attributes are NULL or
empty-string.
In order to both prevent scripting bugs as well as boilerplate
initialization code, the "attrs_pvar" is now always set to ""
(empty-string) in case the "attrs" field is either NULL or empty-string.
More information about the Devel
mailing list