git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6290 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-11-15 21:13:49 +00:00
parent 1af7f81a37
commit 9c929d1bee
1 changed files with 4 additions and 1 deletions

View File

@ -1018,7 +1018,10 @@ static int preprocess(const char *cwd, const char *file, int write_fd, int rleve
}
}
if ((tcmd = (char *)switch_stristr("<X-pre-process", bp))) {
if ((tcmd = (char *)switch_stristr("X-pre-process", bp))) {
if (*(tcmd-1) != '<') {
continue;
}
if ((e = strstr(tcmd, "/>"))) {
*e += 2;
*e = '\0';