Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/devspace-sh/devspace
/ validRelPath
Function
validRelPath
pkg/devspace/server/download.go:170–175 ·
view source on GitHub ↗
(p string)
Source
from the content-addressed store, hash-verified
168
}
169
170
func
validRelPath(p string) bool {
171
if
p ==
""
|| strings.Contains(p, `\`) || strings.HasPrefix(p,
"/"
) || strings.Contains(p,
"../"
) {
172
return
false
173
}
174
return
true
175
}
Callers
1
untar
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected