Ignore leading spaces before application
authorMark Spencer <markster@digium.com>
Sun, 23 Nov 2003 22:45:42 +0000 (22:45 +0000)
committerMark Spencer <markster@digium.com>
Sun, 23 Nov 2003 22:45:42 +0000 (22:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1784 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_config.c

index c7826d0..2850951 100755 (executable)
@@ -1623,6 +1623,7 @@ static int pbx_load_module(void)
 
                                                        if (!data)
                                                                data="";
+                                                       while(*appl && (*appl < 33)) appl++;
                                                        pbx_substitute_variables_helper(NULL, ext, realext, sizeof(realext) - 1);
                                                        if (ipri) {
                                                                if (ast_add_extension2(con, 0, realext, ipri, cidmatch, appl, strdup(data), FREE, registrar)) {