mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Update path validation error handling
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user