]> source.dussan.org Git - gitea.git/commit
fix truncate utf8 string (#15828) (#15854)
authorzeripath <art27@cantab.net>
Thu, 13 May 2021 14:10:29 +0000 (15:10 +0100)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 14:10:29 +0000 (16:10 +0200)
commit387a1bc47228c2f4f60f64a6aa852e2e1e14e44a
treee0c6d043ffd24c672e93e319cf5f8132a1dfafea
parent62daf8459616ca95834fc7b1b3ed183f541906a3
fix truncate utf8 string (#15828) (#15854)

Backport #15828

* fix truncate utf8 string.

* revoke truncated user info.

Co-authored-by: yan <sxty32@gmail.com>
modules/base/tool.go
modules/base/tool_test.go