fix FSCORE-45
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5625 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c806a20d65
commit
4f58b28247
|
@ -951,8 +951,8 @@ static int preprocess(const char *file, int write_fd, int rlevel)
|
||||||
char *arg, *e;
|
char *arg, *e;
|
||||||
char *bp = expand_vars(buf, ebuf, sizeof(ebuf), &cur);
|
char *bp = expand_vars(buf, ebuf, sizeof(ebuf), &cur);
|
||||||
|
|
||||||
/* we ignore <include> or </include> for the sake of validators */
|
/* 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>")) {
|
if (strstr(buf, "<include>") || strstr(buf, "</include>") || strstr(buf, "<?")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue