summaryrefslogtreecommitdiff
path: root/libsoup/soup-uri.c
diff options
context:
space:
mode:
authorSergio Villar Senin <svillar@igalia.com>2011-04-06 21:55:23 +0200
committerSergio Villar Senin <svillar@igalia.com>2011-04-07 20:44:39 +0200
commit48acff9e9e764931d3ea4f1119f4522451de3706 (patch)
tree54144645945b20190fc3368864da7a13760568c8 /libsoup/soup-uri.c
parent5613f4c7ef6450b700c60be48972a5c150272e74 (diff)
downloadlibsoup-48acff9e9e764931d3ea4f1119f4522451de3706.tar.gz
soup_request_data_send: data URL decoding fix
SoupRequestData was not unescaping base64 URIs before trying to decode them. This was incorrectly causing decoding errors with base64 data. https://bugzilla.gnome.org/show_bug.cgi?id=646896
Diffstat (limited to 'libsoup/soup-uri.c')
-rw-r--r--libsoup/soup-uri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index dcffd339..539ff745 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include "soup-uri.h"
+#include "soup-uri-private.h"
#include "soup-form.h"
#include "soup-misc.h"
@@ -92,7 +93,6 @@
**/
static void append_uri_encoded (GString *str, const char *in, const char *extra_enc_chars);
-static char *uri_decoded_copy (const char *str, int length);
static char *uri_normalized_copy (const char *str, int length, const char *unescape_extra);
gpointer _SOUP_URI_SCHEME_HTTP, _SOUP_URI_SCHEME_HTTPS;
@@ -599,7 +599,7 @@ soup_uri_encode (const char *part, const char *escape_extra)
#define XDIGIT(c) ((c) <= '9' ? (c) - '0' : ((c) & 0x4F) - 'A' + 10)
#define HEXCHAR(s) ((XDIGIT (s[1]) << 4) + XDIGIT (s[2]))
-static char *
+char *
uri_decoded_copy (const char *part, int length)
{
unsigned char *s, *d;