mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 19:24:31 +00:00
test: remove duplicate absolute outside-session-path guard case
This commit is contained in:
@@ -93,10 +93,6 @@ describe("session path safety", () => {
|
|||||||
expect(() =>
|
expect(() =>
|
||||||
resolveSessionFilePath("sess-1", { sessionFile: "../../etc/passwd" }, { sessionsDir }),
|
resolveSessionFilePath("sess-1", { sessionFile: "../../etc/passwd" }, { sessionsDir }),
|
||||||
).toThrow(/within sessions directory/);
|
).toThrow(/within sessions directory/);
|
||||||
|
|
||||||
expect(() =>
|
|
||||||
resolveSessionFilePath("sess-1", { sessionFile: "/etc/passwd" }, { sessionsDir }),
|
|
||||||
).toThrow(/within sessions directory/);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("accepts sessionFile candidates within the sessions dir", () => {
|
it("accepts sessionFile candidates within the sessions dir", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user