[libsoup] soup-request-data: handling of data URI with no MIME type
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-request-data: handling of data URI with no MIME type
- Date: Mon, 21 Jul 2014 15:57:08 +0000 (UTC)
commit 08f8440dfa98e19805469fa48ac07ee64cde1c52
Author: Raveendra Karu <r karu samsung com>
Date: Mon Jun 23 21:16:52 2014 +0530
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
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 678e84d..1b44131 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]