فهرست منبع

pass correct signature slice

Alexander Belanger 4 سال پیش
والد
کامیت
f7139683fd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      ee/billing/ironplans.go

+ 1 - 1
ee/billing/ironplans.go

@@ -217,7 +217,7 @@ func (c *Client) VerifySignature(signature string, body []byte) bool {
 	}
 
 	actual := make([]byte, 32)
-	_, err := hex.Decode(actual, []byte(signature))
+	_, err := hex.Decode(actual, []byte(signature[7:]))
 
 	if err != nil {
 		return false