gitea/modules
zeripath f6eedd4dc8 UI: Detect and restore encoding and BOM in content (#6727)
* detect and remove a decoded BOM

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Restore the previous encoding and BOM

* On error keep as UTF-8

Signed-off-by: Andrew Thornton <art27@cantab.net>

* create remove BOM function

* Deal with LFSed content

* Update modules/repofiles/update.go

* Fix final LFS bug

* Keep LFS sections referring to opts.Content
2019-04-26 15:00:30 +03:00
..
auth
avatar
base UI: Detect and restore encoding and BOM in content (#6727) 2019-04-26 15:00:30 +03:00
cache
context
cron
generate
git
gzip
highlight
httplib
indexer
lfs
log
mailer
markup
metrics
minwinsvc
notification
options
pprof
private
process
public
recaptcha
repofiles UI: Detect and restore encoding and BOM in content (#6727) 2019-04-26 15:00:30 +03:00
search
secret
session
setting
ssh
structs
sync
templates UI: Detect and restore encoding and BOM in content (#6727) 2019-04-26 15:00:30 +03:00
test
user
util
validation