mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-18 06:32:51 +02:00
Fix bug
This commit is contained in:
parent
3b3eaec840
commit
f2b1da5392
@ -140,7 +140,7 @@ func GetTreeList(ctx context.Context, repo *repo_model.Repository, treePath stri
|
|||||||
// Check that the path given in opts.treePath is valid (not a git path)
|
// Check that the path given in opts.treePath is valid (not a git path)
|
||||||
cleanTreePath := CleanUploadFileName(treePath)
|
cleanTreePath := CleanUploadFileName(treePath)
|
||||||
if cleanTreePath == "" && treePath != "" {
|
if cleanTreePath == "" && treePath != "" {
|
||||||
return nil, models.ErrFilenameInvalid{
|
return nil, ErrFilenameInvalid{
|
||||||
Path: treePath,
|
Path: treePath,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user