From 8a7b0f048051fbb82e11915b51b90ccf6d927555 Mon Sep 17 00:00:00 2001 From: jcid Date: Tue, 8 Apr 2008 23:07:48 +0200 Subject: - Reverted the datauri patch. --- dpi/datauri.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dpi/datauri.c') diff --git a/dpi/datauri.c b/dpi/datauri.c index 7677fd96..d556f610 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -252,9 +252,11 @@ static unsigned char *datauri_get_data(char *url, size_t *p_sz) if (p) { ++p; - data = (unsigned char *)a_Url_decode_hex_str(p, p_sz); if (is_base64) { + data = (unsigned char *)dStrdup(p); *p_sz = (size_t) b64decode(data); + } else { + data = (unsigned char *)a_Url_decode_hex_str(p, p_sz); } } else { data = (unsigned char *)dStrdup(""); -- cgit v1.2.3