]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix FSCORE-45
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 20 Aug 2007 16:35:22 +0000 (16:35 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 20 Aug 2007 16:35:22 +0000 (16:35 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5625 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml.c

index 18fd51009aa793ae3f79de0dc93f7168a486d423..ab697542418e784f34afbb7b185ada0a18103364 100644 (file)
@@ -951,8 +951,8 @@ static int preprocess(const char *file, int write_fd, int rlevel)
                char *arg, *e;
                char *bp = expand_vars(buf, ebuf, sizeof(ebuf), &cur);
 
-               /* we ignore <include> or </include> for the sake of validators */
-               if (strstr(buf, "<include>") || strstr(buf, "</include>")) {
+               /* we ignore <include> or </include> for the sake of validators as well as <?xml version="1.0"?> type stuff */
+               if (strstr(buf, "<include>") || strstr(buf, "</include>") || strstr(buf, "<?")) {
                        continue;
                }