1
0
Fork 0
forked from forgejo/forgejo

fix: tag contain character ) will http 500 on release page (#1670)

This commit is contained in:
Bo-Yi Wu 2017-05-04 23:38:34 +08:00 committed by GitHub
parent 700b6b524b
commit 75f1afd1fd
3 changed files with 5 additions and 4 deletions

View file

@ -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
}