mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-03 18:05:50 +02:00
Trim =
in encoded source urls
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user