mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
r-vidur. fixing boundary parsing logic to handle boundary identifiers wrapped in double quotes and spaces, 45878
This commit is contained in:
parent
a3381b1cba
commit
33e73d7be4
@ -240,7 +240,8 @@ nsMultiMixedConv::OnStartRequest(nsIChannel *channel, nsISupports *ctxt) {
|
||||
|
||||
nsCAutoString boundaryString(bndry);
|
||||
if (attrib) *attrib = ';';
|
||||
boundaryString.StripWhitespace();
|
||||
|
||||
boundaryString.Trim(" \"");
|
||||
|
||||
mToken = boundaryString.ToNewCString();
|
||||
if (!mToken) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user