Skip to content

Commit

Permalink
Fixed a bug in media type parser
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Feb 22, 2014
1 parent db6786f commit 4270c05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mms-lib/src/mms_codec.c
Expand Up @@ -330,7 +330,6 @@ static const unsigned char *mms_parse_quoted_string(const unsigned char *ptr,
}
}
if (*ptr == '"') {
ptr++;
return mms_parse_skip_spaces(ptr+1);
}
}
Expand Down
4 changes: 2 additions & 2 deletions mms-lib/test/media_type/test_media_type.c
Expand Up @@ -42,12 +42,12 @@ static const TestDesc media_type_tests[] = {
(char**)parsed_basic
},{
"Quotes",
"application/octet-stream; foo = \"\\ quoted \\\"text\\\" \" ",
"application/octet-stream; foo = \"\\ quoted \\\"text\\\" \"",
"application/octet-stream; foo=\" quoted \\\"text\\\" \"",
(char**)parsed_quotes
},{
"Parameters",
"type/subtype; p1=v1 ; p2=\"v2\" ",
"type/subtype; p1=v1 ; p2=\"v2\"",
"type/subtype; p1=v1; p2=v2",
(char**)parsed_parameters
},{
Expand Down

0 comments on commit 4270c05

Please sign in to comment.