mirror of https://github.com/openclaw/openclaw.git
test: remove duplicate absolute outside-session-path guard case
This commit is contained in:
parent
3daaa19426
commit
4f05d045b9
|
|
@ -93,10 +93,6 @@ describe("session path safety", () => {
|
|||
expect(() =>
|
||||
resolveSessionFilePath("sess-1", { sessionFile: "../../etc/passwd" }, { sessionsDir }),
|
||||
).toThrow(/within sessions directory/);
|
||||
|
||||
expect(() =>
|
||||
resolveSessionFilePath("sess-1", { sessionFile: "/etc/passwd" }, { sessionsDir }),
|
||||
).toThrow(/within sessions directory/);
|
||||
});
|
||||
|
||||
it("accepts sessionFile candidates within the sessions dir", () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue