mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 03:24:01 +09:00
Backport #39890 by @SHIVANSHGARG07 strings.Split("", ",") returns []string{""} (length 1), not an empty slice, so the previous len(splitted) > 0 guard was always true and never skipped the label ID lookup, even when the labels query param was absent. Check the raw trimmed param for emptiness before splitting, mirroring the pattern already used elsewhere in this file. Fixes: https://github.com/go-gitea/gitea/issues/39889 Co-authored-by: Shivansh Garg <shivanshgarg587@gmail.com>