Fix: Model Gallery Downloads (#835)

This commit is contained in:
Dave 2023-07-30 03:47:22 -04:00 committed by GitHub
parent 688f150463
commit 5ce0f216cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -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))
}