mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +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:
parent
d2fe657879
commit
6b29dc3e46
Notes:
sideshowbarker
2024-07-17 00:49:59 +09:00
Author: https://github.com/shannonbooth
Commit: 6b29dc3e46
Pull-request: https://github.com/SerenityOS/serenity/pull/20510
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ void HTMLHyperlinkElementUtils::set_username(DeprecatedString username)
|
|||
return;
|
||||
|
||||
// 4. Set the username given this’s 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue