mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
AK+LibWeb: Encode ' ' as '+' in application/x-www-form-urlencoded
This matches what the URL and HTML specifications ask us to do.
This commit is contained in:
parent
74241527d7
commit
3724ce765e
3 changed files with 12 additions and 5 deletions
6
AK/URL.h
6
AK/URL.h
|
@ -104,7 +104,11 @@ public:
|
|||
static u16 default_port_for_scheme(StringView);
|
||||
static bool is_special_scheme(StringView);
|
||||
|
||||
static String percent_encode(StringView input, PercentEncodeSet set = PercentEncodeSet::Userinfo);
|
||||
enum class SpaceAsPlus {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
static String percent_encode(StringView input, PercentEncodeSet set = PercentEncodeSet::Userinfo, SpaceAsPlus = SpaceAsPlus::No);
|
||||
static String percent_decode(StringView input);
|
||||
|
||||
bool operator==(URL const& other) const { return equals(other, ExcludeFragment::No); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue