diff options
author | corvid <corvid@lavabit.com> | 2012-09-28 07:38:37 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-09-28 07:38:37 +0000 |
commit | ee944897bee252ae4970dbc56fb28b35037010a6 (patch) | |
tree | ebc0088c338ceac8822d2e2429ba913bb04afa48 | |
parent | 771585fb7c00b32f9517510cd88bc70bb7613d77 (diff) |
datauri: fix media type when only charset was provided
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | dpi/datauri.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -14,6 +14,7 @@ dillo-3.0.3 [not released yet] +- Fix image input coordinates (BUG#1070) - When location bar is given focus, temporarily show panels if hidden (BUG#1093). + - Fix bug where data URI has charset but no media type. Patches: corvid +- Added the "view-source" keybinding (default: Ctrl-U). Patch: Alexander Voigt diff --git a/dpi/datauri.c b/dpi/datauri.c index f8e2ad94..789698d1 100644 --- a/dpi/datauri.c +++ b/dpi/datauri.c @@ -243,7 +243,7 @@ static char *datauri_get_mime(char *url) if (len == 0) { mime_type = dStrdup("text/plain;charset=US-ASCII"); } else if (!dStrnAsciiCasecmp(buf, "charset", 7)) { - mime_type = dStrconcat("text/plain", buf, NULL); + mime_type = dStrconcat("text/plain;", buf, NULL); } else { mime_type = dStrdup(buf); } |