1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00

Remove URL verification from processing options parsing stage

This commit is contained in:
DarthSim 2019-09-20 14:30:03 +06:00
parent d844b4eea9
commit de804a9245

View File

@ -237,10 +237,6 @@ func decodeBase64URL(parts []string) (string, string, error) {
fullURL := fmt.Sprintf("%s%s", conf.BaseURL, string(imageURL))
// if _, err := url.ParseRequestURI(fullURL); err != nil {
// return "", "", fmt.Errorf("Invalid image url: %s", fullURL)
// }
return fullURL, format, nil
}
@ -269,10 +265,6 @@ func decodePlainURL(parts []string) (string, string, error) {
fullURL := fmt.Sprintf("%s%s", conf.BaseURL, unescaped)
// if _, err := url.ParseRequestURI(fullURL); err != nil {
// return "", "", fmt.Errorf("Invalid image url: %s", fullURL)
// }
return fullURL, format, nil
}