From e99c0ddb0ebc06df684572b532795a298bec0cba Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 25 Jun 2023 14:12:34 +1200 Subject: [PATCH] LibWeb: Add spec link for Web::URL::url_decode --- Userland/Libraries/LibWeb/URL/URLSearchParams.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp b/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp index 60e00b181a..8252e8c442 100644 --- a/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp +++ b/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp @@ -49,6 +49,8 @@ ErrorOr url_encode(Vector const& pairs, AK::URL::PercentEnco return builder.to_string(); } +// https://url.spec.whatwg.org/#concept-urlencoded-parser +// The application/x-www-form-urlencoded parser takes a byte sequence input, and then runs these steps: ErrorOr> url_decode(StringView input) { // 1. Let sequences be the result of splitting input on 0x26 (&).