forked from mirror/serenity
Fix decode base64 URL
This commit is contained in:
parent
f6354971c4
commit
a2665f7993
@ -39,6 +39,6 @@ func decodeBase64URLSafe(content string) (string, error) {
|
||||
content = strings.ReplaceAll(content, "/", "_")
|
||||
content = strings.ReplaceAll(content, "+", "-")
|
||||
content = strings.ReplaceAll(content, "=", "")
|
||||
result, err := base64.StdEncoding.DecodeString(content)
|
||||
result, err := base64.RawURLEncoding.DecodeString(content)
|
||||
return string(result), err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user