1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-03 23:19:17 +02:00

Trim = in encoded source urls

This commit is contained in:
DarthSim
2019-01-14 16:09:14 +06:00
parent 165ae18d87
commit a35ca83a01

View File

@@ -229,7 +229,7 @@ func decodeBase64URL(parts []string) (string, string, error) {
format = urlParts[1]
}
imageURL, err := base64.RawURLEncoding.DecodeString(urlParts[0])
imageURL, err := base64.RawURLEncoding.DecodeString(strings.TrimRight(urlParts[0], "="))
if err != nil {
return "", "", errInvalidURLEncoding
}