File tree Expand file tree Collapse file tree
extensions/bluebubbles/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { IncomingMessage, ServerResponse } from "node:http";
22import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime" ;
33import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime" ;
44import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime" ;
5+ import { normalizeSecretInputString } from "./secret-input.js" ;
56import { resolveBlueBubblesEffectiveAllowPrivateNetwork } from "./accounts.js" ;
67import { createBlueBubblesDebounceRegistry } from "./monitor-debounce.js" ;
78import {
@@ -193,7 +194,7 @@ export async function handleBlueBubblesWebhookRequest(
193194 targets,
194195 res,
195196 isMatch : ( target ) => {
196- const token = target . account . config . password ?. trim ( ) ?? "" ;
197+ const token = normalizeSecretInputString ( target . account . config . password ) ?. trim ( ) ?? "" ;
197198 return safeEqualAuthToken ( guid , token ) ;
198199 } ,
199200 } ) ;
You can’t perform that action at this time.
0 commit comments