mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-17 06:28:07 +00:00
Fix: Model Gallery Downloads (#835)
This commit is contained in:
@ -18,5 +18,5 @@ func inTrustedRoot(path string, trustedRoot string) error {
|
||||
// VerifyPath verifies that path is based in basePath.
|
||||
func VerifyPath(path, basePath string) error {
|
||||
c := filepath.Clean(filepath.Join(basePath, path))
|
||||
return inTrustedRoot(c, basePath)
|
||||
return inTrustedRoot(c, filepath.Clean(basePath))
|
||||
}
|
||||
|
Reference in New Issue
Block a user