mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Remove debug warnings; Update docs
This commit is contained in:
@@ -795,11 +795,9 @@ func applyProcessingOptions(po *processingOptions, options urlOptions) error {
|
||||
func isAllowedSource(imageURL string) bool {
|
||||
logWarning("URL: %s", imageURL)
|
||||
if len(conf.AllowedSources) == 0 {
|
||||
logWarning("No sources set")
|
||||
return true
|
||||
}
|
||||
for _, val := range conf.AllowedSources {
|
||||
logWarning("Allowed Source: %s", string(val))
|
||||
if strings.HasPrefix(imageURL, string(val)) {
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user