1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 06:03:09 +00:00

core: Fix cache collision for non ASCII characters (#12517)

This commit is contained in:
Sen Jiang 2021-11-07 20:40:07 -08:00 committed by GitHub
parent 6b3238e2dd
commit 9147549e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ namespace Jackett.Common.Services
{
var json = GetSerializedQuery(query);
// Compute the hash
return BitConverter.ToString(_sha256.ComputeHash(Encoding.ASCII.GetBytes(json)));
return BitConverter.ToString(_sha256.ComputeHash(Encoding.UTF8.GetBytes(json)));
}
private static string GetSerializedQuery(TorznabQuery query)