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 (
"strings"
jsoniter "github.com/json-iterator/go"
"github.com/stashapp/stash/pkg/fsutil"
"github.com/stashapp/stash/pkg/models/json"
)
@@ -26,7 +27,7 @@ type Gallery struct {
}
func (s Gallery) Filename(basename string, hash string) string {
ret := basename
ret := fsutil.SanitiseBasename(basename)
if ret != "" {
ret += "."