Skip to content
Snippets Groups Projects
Unverified Commit 337f38ca authored by Denis Kasak's avatar Denis Kasak Committed by GitHub
Browse files

Implement a content type allow list for URL previews (#11936)


This implements an allow list for content types for which Synapse will attempt URL preview. If a URL resolves to a resource with a content type which isn't in the list, the download will terminate immediately.

This makes sense given that Synapse would never successfully generate a URL preview for such files in the first place, and helps prevent issues with streaming media servers, such as #8302.

Signed-off-by: default avatarDenis Kasak <dkasak@termina.org.uk>
parent 06e5a763
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment