aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-27 21:08:34 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-27 21:08:34 +0000
commit7b479943aed8fdfa81349792defb1dccd0b72e0f (patch)
treea66c72642673b3ede7753a22dedbca8867964f89 /pbx
parent3d0e4f15ee0ef50e0f76af1925653360cf1daae3 (diff)
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/branches/1.4@72272 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index a844cfc2b..4ca3841a0 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -2238,6 +2238,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';