mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 18:33:00 +02:00
fix groupSegmentWithTrailingSlash to return an empty string if gid <= 0
This commit is contained in:
1 parent
79bc3997fe
commit
4566939671
1 file changed
+3
@@ -681,6 +681,9 @@ func getGroupSegment(gid int64) string {
|
||||
}
|
||||
|
||||
func groupSegmentWithTrailingSlash(gid int64) string {
|
||||
if gid < 1 {
|
||||
return ""
|
||||
}
|
||||
return getGroupSegment(gid) + "/"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user