diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-27 21:06:45 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-27 21:06:45 +0000 |
commit | 8097c9f8b7ea40580a299df3958315a43dd1cfab (patch) | |
tree | ea44684e7a98919b5a742b4cb1658206d9d64871 /pbx | |
parent | b00bd94b184fb16a56c2b9fc7c698f0ffba8db37 (diff) |
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/branches/1.2@72267 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-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 684e43fc1..5e850a2bf 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1678,6 +1678,8 @@ static int pbx_load_module(void) pri = strsep(&stringp, ","); if (!pri) pri=""; + pri = ast_skip_blanks(pri); + pri = ast_trim_blanks(pri); label = strchr(pri, '('); if (label) { *label = '\0'; |