]> source.dussan.org Git - gitea.git/commit
Fix possible panic (#17694)
authorGusted <williamzijl7@hotmail.com>
Thu, 18 Nov 2021 13:25:56 +0000 (13:25 +0000)
committerGitHub <noreply@github.com>
Thu, 18 Nov 2021 13:25:56 +0000 (21:25 +0800)
commit257b7171c34446e73fc83186f859e9b9ce67be76
tree475c08d1dbd46ea1704d2579699a83d3574e61d7
parentd1f5584039b46c70e4abfb933a928a28e6065965
Fix possible panic (#17694)

- The code will get the first and second character `link[{0,1]]`.
However in a rare case the `link` could have 1 character and thus the
`link[1]` will create a panic.
models/repo_avatar.go