mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
As suggested by Russell, warn users when their dialplan arguments contain pipes, but not commas.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1339,6 +1339,11 @@ int pbx_exec(struct ast_channel *c, /*!< Channel */
|
||||
c->data = data;
|
||||
if (app->module)
|
||||
u = __ast_module_user_add(app->module, c);
|
||||
if (!ast_strlen_zero(data) && strchr(data, '|') && !strchr(data, ',')) {
|
||||
ast_log(LOG_WARNING, "The application delimiter is now the comma, not "
|
||||
"the pipe. Did you forget to convert your dialplan? (%s(%s))\n",
|
||||
app->name, (char *) data);
|
||||
}
|
||||
res = app->execute(c, S_OR(data, ""));
|
||||
if (app->module && u)
|
||||
__ast_module_user_remove(app->module, u);
|
||||
|
Reference in New Issue
Block a user