diff options
author | corvid <corvid@lavabit.com> | 2011-11-17 02:30:58 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-11-17 02:30:58 +0000 |
commit | 0737f8cda8761178997948a163ee10cebe3f2ce1 (patch) | |
tree | 8b3a08816c14737e192b209954cd7963cd6ae9ef /dpi/vsource.c | |
parent | e4073e88c1edb556eb2b3fb06cec0639c3a3d80c (diff) |
never treat URI schemes case-sensitively
Diffstat (limited to 'dpi/vsource.c')
-rw-r--r-- | dpi/vsource.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dpi/vsource.c b/dpi/vsource.c index 113aaa99..adf08a83 100644 --- a/dpi/vsource.c +++ b/dpi/vsource.c @@ -101,7 +101,8 @@ void send_html_text(Dsh *sh, const char *url, int data_size) int bytes_read = 0, old_line = 0, line = 1; char *p, *q, *src_str, line_str[128]; - if (strncmp(url, "dpi:/vsource/:", 14) == 0) + if (dStrnAsciiCasecmp(url, "dpi:", 4) == 0 && + strncmp(url+4, "/vsource/:", 10) == 0) url += 14; /* Send HTTP header for plain text MIME type */ |