mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: Fix cache collision for non ASCII characters (#12517)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user