Bugzilla – Bug 191
Content-Type parsing should stop on a semicolon.
Last modified: 2008-05-31 16:30:44 CEST
Index: source =================================================================== --- source (revision 1664) +++ source (revision 1665) @@ -31563,6 +31563,8 @@ <li><p>If the next seven characters are not a case-insensitive<!-- XXX ASCII--> match for 'charset', return nothing.</p></li> + <!-- XXX technically, we should skip to the next MIME parameter, + but the question is, do browsers do that? --> <li><p>Skip any U+0009, U+000A, U+000B, U+000C, U+000D, or U+0020 characters that immediately follow the word 'charset' (there might @@ -31596,8 +31598,8 @@ <dt>Otherwise</dt> <dd><p>Return the string from this character to the first U+0009, - U+000A, U+000B, U+000C, U+000D, or U+0020 character or the end of - <var title="">s</var>, whichever comes first.</dd> + U+000A, U+000B, U+000C, U+000D, U+0020, or U+003B character or + the end of <var title="">s</var>, whichever comes first.</dd> </dl>