diff --git a/common/ASC.Common/Utils/Signature.cs b/common/ASC.Common/Utils/Signature.cs index f2286255a65..2e3cc22ce40 100644 --- a/common/ASC.Common/Utils/Signature.cs +++ b/common/ASC.Common/Utils/Signature.cs @@ -65,7 +65,7 @@ public static T Read(string signature, string secret, Action signatur { signatureResolver?.Invoke(signature); - var payloadParts = Encoding.UTF8.GetString(WebEncoders.Base64UrlDecode(signature)).Split('?'); + var payloadParts = Encoding.UTF8.GetString(WebEncoders.Base64UrlDecode(signature)).Split('?', 2); if (GetHashBase64(payloadParts[1].Trim() + secret) == payloadParts[0]) {