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: https://origsvn.digium.com/svn/asterisk/branches/1.2@72267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Russell Bryant 18 years ago
parent 89cc2e4b70
commit eeafa5951e

@ -1678,6 +1678,8 @@ static int pbx_load_module(void)
pri = strsep(&stringp, ","); pri = strsep(&stringp, ",");
if (!pri) if (!pri)
pri=""; pri="";
pri = ast_skip_blanks(pri);
pri = ast_trim_blanks(pri);
label = strchr(pri, '('); label = strchr(pri, '(');
if (label) { if (label) {
*label = '\0'; *label = '\0';

Loading…
Cancel
Save