Skip to content

Commit 1181ecc

Browse files
committed
fix(hubspot): encodeURIComponent on search path segment for defense-in-depth
1 parent e0b57b3 commit 1181ecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/webhooks/polling/hubspot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ async function fetchHubSpotChanges(args: FetchArgs): Promise<HubSpotSearchResult
593593
logger,
594594
} = args
595595

596-
const url = `https://api.hubapi.com/crm/v3/objects/${resolveSearchPath(objectType)}/search`
596+
const url = `https://api.hubapi.com/crm/v3/objects/${encodeURIComponent(resolveSearchPath(objectType))}/search`
597597
const accumulated: HubSpotSearchResult[] = []
598598
let after: string | undefined
599599
let pages = 0

0 commit comments

Comments
 (0)