[Freeswitch-svn] [commit] r5625 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Mon Aug 20 12:35:23 EDT 2007


Author: anthm
Date: Mon Aug 20 12:35:22 2007
New Revision: 5625

Modified:
   freeswitch/trunk/src/switch_xml.c

Log:
fix FSCORE-45

Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c	(original)
+++ freeswitch/trunk/src/switch_xml.c	Mon Aug 20 12:35:22 2007
@@ -951,8 +951,8 @@
 		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;
 		}
 



More information about the Freeswitch-svn mailing list