[asterisk-commits] russell: branch 1.2 r72267 - /branches/1.2/pbx/pbx_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 27 16:06:46 CDT 2007


Author: russell
Date: Wed Jun 27 16:06:45 2007
New Revision: 72267

URL: http://svn.digium.com/view/asterisk?view=rev&rev=72267
Log:
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)

Modified:
    branches/1.2/pbx/pbx_config.c

Modified: branches/1.2/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx/pbx_config.c?view=diff&rev=72267&r1=72266&r2=72267
==============================================================================
--- branches/1.2/pbx/pbx_config.c (original)
+++ branches/1.2/pbx/pbx_config.c Wed Jun 27 16:06:45 2007
@@ -1678,6 +1678,8 @@
 							pri = strsep(&stringp, ",");
 							if (!pri)
 								pri="";
+							pri = ast_skip_blanks(pri);
+							pri = ast_trim_blanks(pri);
 							label = strchr(pri, '(');
 							if (label) {
 								*label = '\0';




More information about the asterisk-commits mailing list