Browse Source

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

tags/v1.2.0-rc1
Bo-Yi Wu GitHub 9 years ago
parent
commit
d5d81e563d
3 changed files with 5 additions and 4 deletions
  1. +1
    -0
      routers/repo/release.go
  2. +1
    -1
      vendor/code.gitea.io/git/repo_tag.go
  3. +3
    -3
      vendor/vendor.json

+ 1
- 0
routers/repo/release.go View File

@@ -16,6 +16,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markdown"
"code.gitea.io/gitea/modules/setting"

"github.com/Unknwon/paginater"
)



+ 1
- 1
vendor/code.gitea.io/git/repo_tag.go 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
}


+ 3
- 3
vendor/vendor.json View File

@@ -3,10 +3,10 @@
"ignore": "test appengine",
"package": [
{
"checksumSHA1": "spqE5xUEPQp8YV67McMTMAUIilY=",
"checksumSHA1": "wvujc6YaEoP3g2K+USjIcZcrRgQ=",
"path": "code.gitea.io/git",
"revision": "3f99247c0da807afc967c7e12b14f4109b7490ff",
"revisionTime": "2017-04-26T13:12:33Z"
"revision": "ed175468f8debc8cdb2fa495fc157f1b9d046628",
"revisionTime": "2017-05-04T06:58:26Z"
},
{
"checksumSHA1": "vdziKobpPIkU/dLvSI8n7eWrIIE=",


Loading…
Cancel
Save