projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbe9e36
)
Fix Content-Type charser fix for non-quoted mode
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 8 Oct 2013 09:41:27 +0000
(11:41 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 8 Oct 2013 09:41:27 +0000
(11:41 +0200)
src/srwutil.c
patch
|
blob
|
history
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
5a4f576
..
e1c9546
100644
(file)
--- a/
src/srwutil.c
+++ b/
src/srwutil.c
@@
-242,6
+242,8
@@
static void grab_charset(ODR o, const char *content_type, char **charset)
*charset = odr_strdup(o, charset_p);
while (charset_p[i] && charset_p[i] != sep)
{
+ if (!sep && strchr("; \n\r", charset_p[i]))
+ break;
if (charset_p[i] == '\\' && charset_p[i+1])
i++;
(*charset)[j++] = charset_p[i++];