test: tighten malformed include path assertion · openclaw/openclaw@c940c69
openclaw
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -584,7 +584,7 @@ describe("security: path traversal protection (CWE-22)", () => {
|
584 | 584 | return; |
585 | 585 | } |
586 | 586 | // Path with null byte should be rejected or handled safely. |
587 | | -expect(() => resolve(obj, {}), includePath).toThrow(); |
| 587 | +expectResolveIncludeError(() => resolve(obj, {})); |
588 | 588 | }); |
589 | 589 | |
590 | 590 | it("allows child include when config is at filesystem root", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。