summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaveendra Karu <r.karu@samsung.com>2014-06-23 21:16:52 +0530
committerDan Winship <danw@gnome.org>2014-07-21 11:57:20 -0400
commit08f8440dfa98e19805469fa48ac07ee64cde1c52 (patch)
treea74c2a250200c2d90256e408786f4dcfd00fdf3c
parentd0cbd4a11f1d5968db4856dbc0d97496b3cb0d6b (diff)
downloadlibsoup-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.c2
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