Fix json filename generation (#2887)

This commit is contained in:
WithoutPants
2022-09-06 13:10:24 +10:00
parent 0c513a604d
commit 13bdba5b24
9 changed files with 63 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import (
jsoniter "github.com/json-iterator/go"
"github.com/stashapp/stash/pkg/fsutil"
"github.com/stashapp/stash/pkg/logger"
"github.com/stashapp/stash/pkg/models/json"
)
@@ -27,7 +28,7 @@ type Movie struct {
}
func (s Movie) Filename() string {
return s.Name + ".json"
return fsutil.SanitiseBasename(s.Name) + ".json"
}
// Backwards Compatible synopsis for the movie