From 4443a8f9fcad74cc66263fd60ec32b86d94f7cb4 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 6 Nov 2026 12:30:02 +0100 Subject: [PATCH] fix(webdav): bound a kept source only by the cache's own limit --- services/webdav/pkg/thumbnail/workflow/workflow.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/webdav/pkg/thumbnail/workflow/workflow.go b/services/webdav/pkg/thumbnail/workflow/workflow.go index 437a7b20d7..3189797059 100644 --- a/services/webdav/pkg/thumbnail/workflow/workflow.go +++ b/services/webdav/pkg/thumbnail/workflow/workflow.go @@ -600,9 +600,6 @@ func (w *ThumbnailWorkflow) rememberSource(key string, data []byte) { if w.cache == nil || len(data) > maxCachedSourceBytes { return } - if w.maxInputSize > 0 && uint64(len(data)) > w.maxInputSize { - return - } _ = w.cache.Put(key, data) }