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,