diff options
author | Raveendra Karu <r.karu@samsung.com> | 2014-06-23 21:16:52 +0530 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-07-21 11:57:20 -0400 |
commit | 08f8440dfa98e19805469fa48ac07ee64cde1c52 (patch) | |
tree | a74c2a250200c2d90256e408786f4dcfd00fdf3c | |
parent | d0cbd4a11f1d5968db4856dbc0d97496b3cb0d6b (diff) | |
download | libsoup-08f8440dfa98e19805469fa48ac07ee64cde1c52.tar.gz |
soup-request-data: handling of data URI with no MIME type
If a data URI request with no MIME type is sent to libsoup,
data is not decoded properly as this case is missed in
soup_request_data_send api.
https://bugzilla.gnome.org/show_bug.cgi?id=732112
-rw-r--r-- | libsoup/soup-request-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-request-data.c b/libsoup/soup-request-data.c index 678e84da..1b441319 100644 --- a/libsoup/soup-request-data.c +++ b/libsoup/soup-request-data.c @@ -89,7 +89,7 @@ soup_request_data_send (SoupRequest *request, comma = strchr (start, ','); if (comma && comma != start) { /* Deal with MIME type / params */ - if (comma > start + BASE64_INDICATOR_LEN && !g_ascii_strncasecmp (comma - BASE64_INDICATOR_LEN, BASE64_INDICATOR, BASE64_INDICATOR_LEN)) { + if (comma >= start + BASE64_INDICATOR_LEN && !g_ascii_strncasecmp (comma - BASE64_INDICATOR_LEN, BASE64_INDICATOR, BASE64_INDICATOR_LEN)) { end = comma - BASE64_INDICATOR_LEN; base64 = TRUE; } else |