From d1c4a94659a221352c3ea1595acbad63f75b1eb1 Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Sat, 12 Feb 2022 16:42:05 +0000 Subject: LibWeb: Fix comparing current position to quote in Mime Type quote parse Had a look over this with a fresh head and noticed I was comparing the current lexer position to the quote character, oops! --- Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/MimeSniff') diff --git a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp index c3c36904dd..f52c41204e 100644 --- a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp +++ b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp @@ -129,7 +129,7 @@ Optional MimeType::from_string(StringView string) String parameter_value; // 8. If the code point at position within input is U+0022 ("), then: - if (lexer.tell() == '"') { + if (lexer.peek() == '"') { // 1. Set parameterValue to the result of collecting an HTTP quoted string from input, given position and the extract-value flag. parameter_value = collect_an_http_quoted_string(lexer, Fetch::HttpQuotedStringExtractValue::Yes); -- cgit v1.2.3