Quellcode durchsuchen

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.
Shannon Booth vor 1 Jahr
Ursprung
Commit
6b29dc3e46
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp

+ 1 - 1
Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp

@@ -114,7 +114,7 @@ void HTMLHyperlinkElementUtils::set_username(DeprecatedString username)
         return;
         return;
 
 
     // 4. Set the username given this’s URL and the given value.
     // 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.
     // 5. Update href.
     update_href();
     update_href();