fix(security): harden access checks and migration validation (#38324) (#38400)

This commit is contained in:
Giteabot
2026-07-10 20:14:38 +02:00
committed by GitHub
parent af7ba2edef
commit ed493f0684
15 changed files with 304 additions and 15 deletions
+3
View File
@@ -22,6 +22,9 @@ func WarnAndNotice(fmtStr string, args ...any) {
}
func hasBaseURL(toCheck, baseURL string) bool {
if baseURL == "" {
return false
}
if len(baseURL) > 0 && baseURL[len(baseURL)-1] != '/' {
baseURL += "/"
}