ambiguous POST data truncation.
Vjacheslav Chekushin <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | LMT |
| Message-ID | <[email protected]> |
Hi, list
In wsp_server_method_states.def:
/*
* The Siemens S35 adds an extra NUL character to the end
* of the request body which may not work with certain cgi
* scripts. It is removed here by truncating the length.
*/
req_body_size = octstr_len(pdu->u.Post.data);
if(octstr_get_char(pdu->u.Post.data,(req_body_size - 1)) == 0)
octstr_truncate(pdu->u.Post.data,(req_body_size - 1));
I encounter the problem with truncated NULL for binary POSTs.
Some samsung phones send this trailing NULL in jpegs. WAP gw truncate it.
Samsung phone fails to receive such truncated message.
I remove this ambiguous truncation to fix the problem.
I'm not sure about these "certain cgi scripts" but to remove some data from POST
not a good solution.
--
Vjacheslav Chekushin mailto:[email protected]
Latvian Mobile Phone Company http://www.lmt.lv