fix REGEX on strings that contain quotes (issue #6678)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@13925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Russell Bryant 20 years ago
parent e34983cde0
commit 9925080ca6

@ -89,10 +89,9 @@ static char *builtin_function_regex(struct ast_channel *chan, char *cmd, char *d
/* Regex in quotes */
arg = strchr(tmp, '"');
if (arg) {
arg++;
earg = strrchr(arg, '"');
earg = ++arg;
strsep(&earg, "\"");
if (earg) {
*earg++ = '\0';
/* Skip over any spaces before the data we are checking */
while (*earg == ' ')
earg++;

Loading…
Cancel
Save