soup_multipart_new_from_message: fix to work with binary attachments
authorDan Winship <danw@gnome.org>
Sat, 21 Nov 2009 15:29:00 +0000 (10:29 -0500)
committerDan Winship <danw@gnome.org>
Sat, 21 Nov 2009 15:29:00 +0000 (10:29 -0500)
commit3d33dfd16166e302bb77ba98559a6acdf456d8a5
treeb332b3f53db8eb33b0f20339c96077eca68abadc
parent2a4fe13e91ec63f9cffafe66c25c3b8025507d7b
soup_multipart_new_from_message: fix to work with binary attachments

Previously we were using strstr() to find the multipart boundary, so
it would fail if the body contained '\0' bytes. Update
tests/forms-test to test this case.

https://bugzilla.gnome.org/show_bug.cgi?id=601640
libsoup/soup-multipart.c
tests/forms-test.c