mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Allow matching on names shorter than 3 chars.
This also fixes the case where somebody wants to match on less then 3 chars. Issue 9071 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -470,7 +470,7 @@ static int do_directory(struct ast_channel *chan, struct ast_config *cfg, char *
|
||||
pos = strrchr(pos, ' ') + 1;
|
||||
conv = convert(pos);
|
||||
if (conv) {
|
||||
if (!strcmp(conv, ext)) {
|
||||
if (!strncmp(conv, ext, strlen(ext))) {
|
||||
/* Match! */
|
||||
found++;
|
||||
free(conv);
|
||||
|
Reference in New Issue
Block a user