mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix json filename generation (#2887)
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/stashapp/stash/pkg/fsutil"
|
||||
"github.com/stashapp/stash/pkg/models"
|
||||
"github.com/stashapp/stash/pkg/models/json"
|
||||
)
|
||||
@@ -24,7 +25,7 @@ type Studio struct {
|
||||
}
|
||||
|
||||
func (s Studio) Filename() string {
|
||||
return s.Name + ".json"
|
||||
return fsutil.SanitiseBasename(s.Name) + ".json"
|
||||
}
|
||||
|
||||
func LoadStudioFile(filePath string) (*Studio, error) {
|
||||
|
||||
Reference in New Issue
Block a user