1
0
Fork 0

Minor fix to MM7/SOAP parser to lookout for missing "cid:" in Content tag

This commit is contained in:
bagyenda 2006-11-29 09:22:49 +00:00
parent 1075745c33
commit 6ca83011c9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,5 @@
2006-11-29 Paul A. Bagyenda <bagyenda@dsmagic.com>
* MM7/SOAP when Content XML tag missing 'cid:', don't fail
2006-11-28 Paul A. Bagyenda <bagyenda@dsmagic.com>
* Minor fix for MM7 VAS GW error code (should be VASPErrorRsp)
2006-11-27 Paul A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -271,7 +271,11 @@ MSoapMsg_t *mm7_parse_soap(List *headers, Octstr *body)
/* XXXX only support content that is inline. easy to add external. */
MIMEEntity *c = NULL;
int i, n;
char *loc = octstr_get_cstr(cloc) + 4; /* skip 'cid:' part. */
char *loc = octstr_get_cstr(cloc);
if (octstr_case_search(cloc, octstr_imm("cid:"), 0) == 0) /* skip 'cid:' part. */
loc += 4; /* XXX This should always be there, but some MMC don't put it there. */
for (i = 0, n = mime_entity_num_parts(mime); i<n; i++) {
MIMEEntity *x = mime_entity_get_part(mime, i);
List *headers = mime_entity_headers(x);