Fix explicit text alias extension check · openclaw/openclaw@14dbf80
openclaw
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -327,7 +327,7 @@ function isAllowedHostReadTextAlias(mime: string | undefined, filePath?: string)
|
327 | 327 | return true; |
328 | 328 | } |
329 | 329 | const ext = getFileExtension(filePath); |
330 | | -return !!ext && allowedExtensions.includes(ext); |
| 330 | +return ext !== undefined && allowedExtensions.includes(ext); |
331 | 331 | } |
332 | 332 | |
333 | 333 | function formatMb(bytes: number, digits = 2): string { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。