diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-27 21:09:24 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-27 21:09:24 +0000 |
commit | 12c0a35ca529030ef68c9cd01201252119ca0dc0 (patch) | |
tree | 16326fe9d05264fe979d1e2c0f82bb628e1938f3 /pbx/pbx_config.c | |
parent | 9367a00b386b6d9736563640b6e00342dbee794a (diff) |
Merged revisions 72272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r72272 | russell | 2007-06-27 16:08:34 -0500 (Wed, 27 Jun 2007) | 13 lines
Merged revisions 72267 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r72267 | russell | 2007-06-27 16:06:45 -0500 (Wed, 27 Jun 2007) | 5 lines
Fix a minor issue with parsing the priority number. You could have as much
whitespace as you want around a numeric priority, but you couldn't have any
whitespace around a special priority like "n" or "hint".
(issue #10039, reported by mitheloc, fixed by me)
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72274 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_config.c')
-rw-r--r-- | pbx/pbx_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index be125ddb9..507a96039 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1401,6 +1401,8 @@ static int pbx_load_config(const char *config_file) pri = strsep(&stringp, ","); if (!pri) pri=""; + pri = ast_skip_blanks(pri); + pri = ast_trim_blanks(pri); label = strchr(pri, '('); if (label) { *label++ = '\0'; |