gitea/modules/typesniffer
Giteabot cf80f829b4
Do not recognize text files as audio (#23355) (#23368)
Backport #23355

Close #17108

This PR uses a trick (removing the ID3 tag) to detect the content again
to to see whether the content is text type.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-03-08 16:03:05 +08:00
..
typesniffer.go Do not recognize text files as audio (#23355) (#23368) 2023-03-08 16:03:05 +08:00
typesniffer_test.go Do not recognize text files as audio (#23355) (#23368) 2023-03-08 16:03:05 +08:00