fix: validate AbortSignal instances before calling AbortSignal.any() (#7277) (thanks @Elarwei001)
This commit is contained in:
@@ -13,6 +13,7 @@ Docs: https://docs.openclaw.ai
|
||||
|
||||
### Fixes
|
||||
|
||||
- fix(agents): validate AbortSignal instances before calling AbortSignal.any() (#7277) (thanks @Elarwei001)
|
||||
- fix(webchat): respect user scroll position during streaming and refresh (#7226) (thanks @marcomarandiz)
|
||||
- Security: guard skill installer downloads with SSRF checks (block private/localhost URLs).
|
||||
- Media understanding: apply SSRF guardrails to provider fetches; allow private baseUrl overrides explicitly.
|
||||
|
||||
@@ -12,11 +12,7 @@ function throwAbortError(): never {
|
||||
* where the AbortSignal constructor may differ.
|
||||
*/
|
||||
function isAbortSignal(obj: unknown): obj is AbortSignal {
|
||||
if (!obj || typeof obj !== "object") {
|
||||
return false;
|
||||
}
|
||||
const signal = obj as Record<string, unknown>;
|
||||
return typeof signal.aborted === "boolean" && typeof signal.addEventListener === "function";
|
||||
return obj instanceof AbortSignal;
|
||||
}
|
||||
|
||||
function combineAbortSignals(a?: AbortSignal, b?: AbortSignal): AbortSignal | undefined {
|
||||
|
||||
Reference in New Issue
Block a user