]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a minor issue with parsing the priority number. You could have as much
authorRussell Bryant <russell@russellbryant.com>
Wed, 27 Jun 2007 21:06:45 +0000 (21:06 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 27 Jun 2007 21:06:45 +0000 (21:06 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72267 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_config.c

index 684e43fc1308e6a494bf667edfffec6359d404ea..5e850a2bf91d5ec4697a49874f0adedbdb62678b 100644 (file)
@@ -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';