mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
fix: assert traversal-specific error in restore backup test
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
d9a098757e
commit
c61d08fbdc
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ func TestRestoreBackupRejectsPathTraversal(t *testing.T) {
|
|||
require.NoError(t, zw.Close())
|
||||
|
||||
err = theAPI.RestoreBackup(unlockPassword, &buf)
|
||||
require.Error(t, err)
|
||||
require.ErrorContains(t, err, "refusing to extract zip entry outside restore directory")
|
||||
|
||||
_, statErr := os.Stat(escapeTarget)
|
||||
require.True(t, os.IsNotExist(statErr), "traversal entry must not be written outside the restore directory")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue