mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-10 23:36:37 +08:00
优化
优化
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/ShukeBta/MediaStationGo/internal/config"
|
||||
"github.com/ShukeBta/MMTL/internal/config"
|
||||
)
|
||||
|
||||
func TestBackupFilePathRejectsTraversal(t *testing.T) {
|
||||
@@ -15,7 +15,7 @@ func TestBackupFilePathRejectsTraversal(t *testing.T) {
|
||||
t.Fatalf("backupFilePath(%q) allowed traversal or non-backup file", name)
|
||||
}
|
||||
}
|
||||
path, err := svc.backupFilePath("mediastation_20260611_010203.db")
|
||||
path, err := svc.backupFilePath("mmtl_20260611_010203.db")
|
||||
if err != nil {
|
||||
t.Fatalf("backupFilePath(valid) = %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user