diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-12-09 13:41:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 05:41:17 +0000 |
commit | c7e23401a3b7d1e38aacd857c1ec9be53a2fa63a (patch) | |
tree | c44c00a56704303753f81af6c2324c5fce3b6838 /models | |
parent | 183175263d9b45af6b27b677a9a0e96b45fbd4d3 (diff) | |
download | gitea-c7e23401a3b7d1e38aacd857c1ec9be53a2fa63a.tar.gz gitea-c7e23401a3b7d1e38aacd857c1ec9be53a2fa63a.zip |
Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928)
* Fix a panic in NotifyCreateIssueComment (caused by string truncation)
* more unit tests
* refactor
* fix some edge cases
* use SplitStringAtByteN for comment content
Diffstat (limited to 'models')
-rw-r--r-- | models/repo_archiver.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/models/repo_archiver.go b/models/repo_archiver.go index 2369a16108..9363d09574 100644 --- a/models/repo_archiver.go +++ b/models/repo_archiver.go @@ -6,7 +6,6 @@ package models import ( "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" ) |