Skip to content

Commit 211a060

Browse files
committed
Improved previous Content-Type parser fix
Used @albrechtd's patch. Fixes issue #181
1 parent 7d2e560 commit 211a060

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gmime/gmime-content-type.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ _g_mime_content_type_parse (GMimeParserOptions *options, const char *str, gint64
212212

213213
/* skip past any remaining junk that shouldn't be here... */
214214
skip_cfws (&inptr);
215-
while (*inptr && *inptr != ';') {
215+
if (*inptr && *inptr != ';') {
216216
_g_mime_parser_options_warn (options, offset, GMIME_WARN_INVALID_CONTENT_TYPE, str);
217-
inptr++;
217+
while (*inptr && *inptr != ';')
218+
inptr++;
218219
}
219220

220221
if (*inptr++ == ';' && *inptr && (params = _g_mime_param_list_parse (options, inptr, offset))) {

0 commit comments

Comments
 (0)