mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix bug 672079: single quotes are not delimiters inside the Link header field, r=bzbarsky
This commit is contained in:
parent
b1c599ad7c
commit
287e6143da
@ -641,7 +641,7 @@ nsContentSink::ProcessLinkHeader(nsIContent* aElement,
|
||||
while (*end != kNullCh && *end != kSemicolon && *end != kComma) {
|
||||
PRUnichar ch = *end;
|
||||
|
||||
if (ch == kApostrophe || ch == kQuote || ch == kLessThan) {
|
||||
if (ch == kQuote || ch == kLessThan) {
|
||||
// quoted string
|
||||
|
||||
PRUnichar quote = ch;
|
||||
@ -723,8 +723,7 @@ nsContentSink::ProcessLinkHeader(nsIContent* aElement,
|
||||
value++;
|
||||
}
|
||||
|
||||
if (((*value == kApostrophe) || (*value == kQuote)) &&
|
||||
(*value == *last)) {
|
||||
if ((*value == kQuote) && (*value == *last)) {
|
||||
*last = kNullCh;
|
||||
value++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user