1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-25 01:07:38 +00:00

ProtectionService: fix empty password handling

This commit is contained in:
kaso17 2018-06-26 17:58:46 +02:00
parent 099adadbdc
commit 8de0b0cbad

View file

@ -42,11 +42,17 @@ namespace Jackett.Server.Services
public string Protect(string plainText)
{
if (string.IsNullOrEmpty(plainText))
return string.Empty;
return _protector.Protect(plainText);
}
public string UnProtect(string plainText)
{
if (string.IsNullOrEmpty(plainText))
return string.Empty;
return _protector.Unprotect(plainText);
}