0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 10:05:18 +02:00

fix groupSegmentWithTrailingSlash to return an empty string if gid <= 0

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-22 18:48:48 -05:00
parent 79bc3997fe
commit 4566939671
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -681,6 +681,9 @@ func getGroupSegment(gid int64) string {
}
func groupSegmentWithTrailingSlash(gid int64) string {
if gid < 1 {
return ""
}
return getGroupSegment(gid) + "/"
}