diff --git a/CHANGELIST.md b/CHANGELIST.md index e09c26b4..a5074778 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -16,6 +16,7 @@ - Separate out remaining functionality into individual DLLs - Update to Aaru v5.3.0 LTS - Update to DIC 20211101 +- HTTP encode password for Redump login, again ### 2.1 (2021-07-22) - Enum, no more diff --git a/RedumpLib/Web/RedumpWebClient.cs b/RedumpLib/Web/RedumpWebClient.cs index 7e2ab5ac..dad68332 100644 --- a/RedumpLib/Web/RedumpWebClient.cs +++ b/RedumpLib/Web/RedumpWebClient.cs @@ -63,6 +63,9 @@ namespace RedumpLib.Web /// True if the user could be logged in, false otherwise, null on error public bool? Login(string username, string password) { + // HTTP encode the password + password = WebUtility.UrlEncode(password); + // Credentials verification if (!string.IsNullOrWhiteSpace(username) && !string.IsNullOrWhiteSpace(password)) {