HTTP encode password for Redump login, again (fixes #314)

This commit is contained in:
Matt Nadareski
2021-10-01 09:01:41 -07:00
parent 0e5d8af0e9
commit fabf08ba55
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -63,6 +63,9 @@ namespace RedumpLib.Web
/// <returns>True if the user could be logged in, false otherwise, null on error</returns>
public bool? Login(string username, string password)
{
// HTTP encode the password
password = WebUtility.UrlEncode(password);
// Credentials verification
if (!string.IsNullOrWhiteSpace(username) && !string.IsNullOrWhiteSpace(password))
{