diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 20:27:18 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 20:27:18 +0000 |
commit | 467ef402e039a63cc55e1925a6f83cf4448081ac (patch) | |
tree | 9e2bf521c3bc8dcf7a52173e8123e401d5541fbb /pbx.c | |
parent | ad378ed42cd7be46b88ee235e179a831a7d58797 (diff) |
Don't enter the LEN() routines if the variable name was not found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1149 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -888,9 +888,9 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var, } } } - if (!(*ret)) { + if (!(*ret) && strcasecmp(var,"LEN(",4) { int len=strlen(var); - int len_len=strlen("LEN("); + int len_len=4; if (len > (len_len+1) && !strncasecmp(var,"LEN(",len_len) && strchr(var+len_len+2,')')) { char cp3[80]; strncpy(cp3, var, sizeof(cp3) - 1); |