summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2022-09-27 10:44:18 -0400
committerLinus Groh <mail@linusgroh.de>2022-09-27 15:47:54 +0100
commitbf6d5fce18f9008d1bb139b6869892e02f12559b (patch)
tree4d9f75f72d1ed73a92f6d9afd5b968546fe1b10a /Userland/Libraries/LibWeb
parent7178c31f1c3a5e5ebf1c9329ba339f1ae40a36db (diff)
downloadserenity-bf6d5fce18f9008d1bb139b6869892e02f12559b.zip
LibWeb: In MimeType serialization, put just one \ in front of each "
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
index a6b23a702d..a5c0817c52 100644
--- a/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
+++ b/Userland/Libraries/LibWeb/MimeSniff/MimeType.cpp
@@ -196,8 +196,8 @@ String MimeType::serialized() const
// 4. If value does not solely contain HTTP token code points or value is the empty string, then:
if (!contains_only_http_token_code_points(value) || value.is_empty()) {
// 1. Precede each occurence of U+0022 (") or U+005C (\) in value with U+005C (\).
- value = value.replace("\""sv, "\\\""sv, ReplaceMode::All);
value = value.replace("\\"sv, "\\\\"sv, ReplaceMode::All);
+ value = value.replace("\""sv, "\\\""sv, ReplaceMode::All);
// 2. Prepend U+0022 (") to value.
// 3. Append U+0022 (") to value.