Fix various typos in codebase (#35480)

This commit is contained in:
luzpaz authored and GitHub committed 2025-09-13 10:34:43 -04:00
1 parent 325e059a50
commit 688abac5ca
26 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ func resolveLinkRelative(ctx context.Context, base, cur, link string, absolute b
}
if strings.HasPrefix(link, "/") {
if strings.HasPrefix(link, base) && strings.Count(base, "/") >= 4 {
// a trick to tolerate that some users were using absolut paths (the old gitea's behavior)
// a trick to tolerate that some users were using absolute paths (the old gitea's behavior)
finalLink = link
} else {
finalLink = util.URLJoin(base, "./", link)