mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-01 06:33:22 +00:00
closes #626: M1440677
This commit is contained in:
parent
92be8e3bec
commit
81acd2b99d
@ -485,10 +485,13 @@ nsMIMEHeaderParamImpl::DoParameterInternal(const char *aHeaderValue,
|
||||
if (*str != '"') {
|
||||
// The value is a token, not a quoted string.
|
||||
valueStart = str;
|
||||
for (valueEnd = str;
|
||||
*valueEnd && !nsCRT::IsAsciiSpace (*valueEnd) && *valueEnd != ';';
|
||||
valueEnd++)
|
||||
for (valueEnd = str; *valueEnd && *valueEnd != ';'; valueEnd++) {
|
||||
;
|
||||
}
|
||||
// ignore trailing whitespace:
|
||||
while (valueEnd > valueStart && nsCRT::IsAsciiSpace(*(valueEnd - 1))) {
|
||||
valueEnd--;
|
||||
}
|
||||
str = valueEnd;
|
||||
} else {
|
||||
isQuotedString = true;
|
||||
|
Loading…
Reference in New Issue
Block a user