mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-12 11:13:21 +02:00
fix groupSegmentWithTrailingSlash to return an empty string if gid <= 0
This commit is contained in:
parent
2f906e9137
commit
96464507a9
@ -682,6 +682,9 @@ func getGroupSegment(gid int64) string {
|
||||
}
|
||||
|
||||
func groupSegmentWithTrailingSlash(gid int64) string {
|
||||
if gid < 1 {
|
||||
return ""
|
||||
}
|
||||
return getGroupSegment(gid) + "/"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user