MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / isPublicFileSharePagePath

Function isPublicFileSharePagePath

core/utils/security/security.go:173–176  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

171}
172
173func isPublicFileSharePagePath(path string) bool {
174 reqUri := strings.TrimSuffix(path, "/")
175 return publicSharePagePattern.MatchString(reqUri)
176}
177
178func checkBindDomain(c *gin.Context) bool {
179 settingRepo := repo.NewISettingRepo()

Callers 1

CanServeFrontendPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected