1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 12:00:49 +00:00

LibWeb: Fix double percent encode of username

URL::set_username will apply a percent encode, so we don't need to do
it a second time here.
This commit is contained in:
Shannon Booth 2023-08-12 16:52:37 +12:00 committed by Andrew Kaster
parent d2fe657879
commit 6b29dc3e46

View File

@ -114,7 +114,7 @@ void HTMLHyperlinkElementUtils::set_username(DeprecatedString username)
return;
// 4. Set the username given thiss URL and the given value.
url->set_username(AK::URL::percent_encode(username, AK::URL::PercentEncodeSet::Userinfo));
url->set_username(username);
// 5. Update href.
update_href();