diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-05-04 23:38:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 23:38:34 +0800 |
commit | 75f1afd1fd89877d279c0b32bf00057cdda15224 (patch) | |
tree | f61f4b9c23ee743cc7b901a264a65ab4cc2d12f5 /vendor/code.gitea.io | |
parent | 700b6b524b767e1ba3153ac04dacadad7ed6b7b8 (diff) | |
download | gitea-75f1afd1fd89877d279c0b32bf00057cdda15224.tar.gz gitea-75f1afd1fd89877d279c0b32bf00057cdda15224.zip |
fix: tag contain character ) will http 500 on release page (#1670)
Diffstat (limited to 'vendor/code.gitea.io')
-rw-r--r-- | vendor/code.gitea.io/git/repo_tag.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/code.gitea.io/git/repo_tag.go b/vendor/code.gitea.io/git/repo_tag.go index 6503c8ada3..4474f7862b 100644 --- a/vendor/code.gitea.io/git/repo_tag.go +++ b/vendor/code.gitea.io/git/repo_tag.go @@ -122,7 +122,7 @@ func parseTag(line string, opt TagOption) (*Tag, error) { if start < 0 { return nil, nil } - end := strings.IndexByte(left[start+1:], ')') + end := strings.LastIndexByte(left[start+1:], ')') if end < 0 { return nil, nil } |