From c6d47dbb308f9796e7c517ff6074c0ca43457463 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 12 Nov 2026 17:01:48 -0800 Subject: [PATCH] chore(integrations): tidy two comments left by the Google/Microsoft sweep --- apps/sim/lib/internal/sharepoint/operations.ts | 2 +- apps/sim/tools/gmail/utils.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/sim/lib/internal/sharepoint/operations.ts b/apps/sim/lib/internal/sharepoint/operations.ts index 844e6268c29..7fa0f5a9a64 100644 --- a/apps/sim/lib/internal/sharepoint/operations.ts +++ b/apps/sim/lib/internal/sharepoint/operations.ts @@ -89,7 +89,7 @@ function buildUploadUrl( const folderPath = input.folderPath?.trim() || '' const normalizedPath = folderPath.startsWith('/') ? folderPath : `/${folderPath}` const cleanPath = normalizedPath.endsWith('/') ? normalizedPath.slice(0, -1) : normalizedPath - // A "." folder segment was collapsed by the URL parser before; keep that, but never allow ".." + // Drop "." folder segments (the URL parser would collapse them); ".." is rejected below const uploadPath = (folderPath ? `${cleanPath}/${fileName}` : `/${fileName}`) .split('/') .filter((segment, index, segments) => segment !== '.' || index === segments.length - 1) diff --git a/apps/sim/tools/gmail/utils.ts b/apps/sim/tools/gmail/utils.ts index 01a7aa31076..f4002bbcbdd 100644 --- a/apps/sim/tools/gmail/utils.ts +++ b/apps/sim/tools/gmail/utils.ts @@ -58,7 +58,6 @@ export async function fetchThreadingHeaders( return {} } -/** Case-insensitive lookup of a top-level message header value. */ /** Case-insensitive header lookup on a Gmail message payload. */ export function getHeaderValue( headers: ReadonlyArray<{ name: string; value: string }> | undefined,