spaces in mms-urls must not be escaped
Status: Beta
Brought to you by:
scaple
When requesting mms-urls like
"mms://bla.dada.com/name with blanks"
then this url is sent with the spaces escaped
(%20), but this doesnt work (no response from mms-server) changed this in mms.c to the following ugly code:
{
char tmp[1000];
strcpy (tmp, msp->u->path);
url_unescape (tmp);
printf ("---path---'%s'---\n",tmp);
string_utf16 (&data[8], tmp, strlen(tmp));
memset (data, 0, 8);
err = mms_send_command (msp, 5, 0, 0, strlen(tmp) * 2 + 12, data);
}
(made url_escape public in url.c/url.h)
Then the download works as expected. Dont know the mms-specs, but maybe mms-paths/urls may not be escaped in url-like manner?
Cheers Peter Bauer