Skip to content

Commit

Permalink
Merge pull request #155 from ONLYOFFICE/bugfix/65934
Browse files Browse the repository at this point in the history
Bugfix/65934
  • Loading branch information
pavelbannov authored Jan 17, 2024
2 parents 6d5065b + 404e6de commit dbaf78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/ASC.Common/Utils/Signature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static T Read<T>(string signature, string secret, Action<string> 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])
{
Expand Down

0 comments on commit dbaf78a

Please sign in to comment.