Update path validation error handling

This commit is contained in:
2024-11-28 21:18:30 +01:00
parent fbb8fa3a60
commit 91489ca633
4 changed files with 70 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ func TestValidatePath(t *testing.T) {
path: "../../../etc/passwd",
want: "",
wantErr: true,
errContains: "outside of workspace",
errContains: "path traversal attempt",
},
{
name: "absolute path attempt",