提交 3f021b98 authored 作者: Mathieu Rene's avatar Mathieu Rene

mod_commands: check for zstr(cmd) in escape_function

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16029 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 7af5b4f6
......@@ -3866,8 +3866,15 @@ SWITCH_STANDARD_API(hupall_api_function)
SWITCH_STANDARD_API(escape_function)
{
int len = strlen(cmd)*2;
char *mycmd = malloc(strlen(cmd)*2);
int len;
char *mycmd;
if (zstr(cmd)) {
return SWITCH_STATUS_SUCCESS;
}
len = strlen(cmd)*2;
mycmd = malloc(len);
stream->write_function(stream, "%s", switch_escape_string(cmd, mycmd, len));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论