gitea/modules
zeripath bc4764ffc6
Detect truncated utf-8 characters at the end of content as still representing utf-8 (#19773)
Our character detection algorithm can potentially incorrectly detect utf-8 as iso-8859-x
if there is a truncated character at the end of the partially read file.

This PR changes the detection algorithm to truncated utf8 characters at the end of the
buffer.

Fix #19743

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-05-21 14:06:24 +01:00
..
activitypub
analyze
appstate
auth
avatar
base
cache Update go-chi/cache to utilize Ping() (#19719) 2022-05-15 20:43:27 +02:00
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 (#19773) 2022-05-21 14:06:24 +01:00
container
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
convert Nuke the incorrect permission report on /api/v1/notifications (#19761) 2022-05-20 18:57:49 +02:00
csv
doctor Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
emoji
eventsource
generate
git Allow custom default merge message with .gitea/default_merge_message/<merge_style>_TEMPLATE.md (#18177) 2022-05-08 20:32:45 +08:00
gitgraph Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
graceful
hcaptcha
highlight
hostmatcher
httpcache Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
httplib
indexer Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
json
lfs
log
markup
metrics
migration
nosql
notification Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
repository Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
secret
session
setting Enable packages by default again (as described by docs) (#19746) 2022-05-20 02:48:42 +02:00
ssh Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
storage
structs
svg
sync
templates Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
test Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
validation
web