fix(server): only allow absolute import paths (#13642)

fix: only allow absolute paths
This commit is contained in:
Jonathan Jogenfors
2024-10-21 16:12:12 +02:00
committed by GitHub
parent 56bebd01df
commit b411e30796
4 changed files with 54 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ export const libraryStub = {
assets: [],
owner: userStub.admin,
ownerId: 'user-id',
importPaths: ['upload/thumbs', '/xyz', 'upload/library'],
importPaths: ['upload/thumbs', 'xyz', 'upload/library'],
createdAt: new Date('2023-01-01'),
updatedAt: new Date('2023-01-01'),
refreshedAt: null,