mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-21 04:31:26 +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 != '"') {
|
if (*str != '"') {
|
||||||
// The value is a token, not a quoted string.
|
// The value is a token, not a quoted string.
|
||||||
valueStart = str;
|
valueStart = str;
|
||||||
for (valueEnd = str;
|
for (valueEnd = str; *valueEnd && *valueEnd != ';'; valueEnd++) {
|
||||||
*valueEnd && !nsCRT::IsAsciiSpace (*valueEnd) && *valueEnd != ';';
|
|
||||||
valueEnd++)
|
|
||||||
;
|
;
|
||||||
|
}
|
||||||
|
// ignore trailing whitespace:
|
||||||
|
while (valueEnd > valueStart && nsCRT::IsAsciiSpace(*(valueEnd - 1))) {
|
||||||
|
valueEnd--;
|
||||||
|
}
|
||||||
str = valueEnd;
|
str = valueEnd;
|
||||||
} else {
|
} else {
|
||||||
isQuotedString = true;
|
isQuotedString = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user