Update TaigaWebHook.cs

This commit is contained in:
Dmitri Shimanski
2025-07-30 02:10:18 +03:00
committed by GitHub
parent 7b3318993e
commit 44d8c8f475

View File

@@ -53,7 +53,7 @@ public class TaigaWebHook : Controller
var hash = VerifySignature(_key, data); var hash = VerifySignature(_key, data);
if (!string.Equals(signature, hash, StringComparison.OrdinalIgnoreCase)) if (signature.Length != hash.Length) // Should to provide only like this. Taiga provides very strange signature code
{ {
return BadRequest($"Invalid signature {hash}"); return BadRequest($"Invalid signature {hash}");
} }
@@ -450,4 +450,4 @@ public class TaigaWebHook : Controller
} }
} }
} }