fix(ci): address lint and test type failures · openclaw/openclaw@c71c49c
steipete
·
2026-05-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -598,10 +598,14 @@ function installFastLocalImageProviderStubs(...providers: MediaUnderstandingProv
|
598 | 598 | }), |
599 | 599 | loadImageWebMediaRuntime: async () => ({ |
600 | 600 | loadWebMedia: async (mediaUrl, options) => { |
| 601 | +const inboundRoots = |
| 602 | +options && typeof options === "object" && "inboundRoots" in options |
| 603 | + ? options.inboundRoots |
| 604 | + : []; |
601 | 605 | if ( |
602 | 606 | !isInboundPathAllowed({ |
603 | 607 | filePath: mediaUrl, |
604 | | -roots: options?.inboundRoots ?? [], |
| 608 | +roots: inboundRoots ?? [], |
605 | 609 | }) |
606 | 610 | ) { |
607 | 611 | throw new Error(`Local media path is not under an allowed directory: ${mediaUrl}`); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。