Skip to content

Commit 016755f

Browse files
authored
chore(integrations): tidy two comments left by the Google/Microsoft sweep (#9969)
1 parent 9c1857c commit 016755f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/sim/lib/internal/sharepoint/operations.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function buildUploadUrl(
8989
const folderPath = input.folderPath?.trim() || ''
9090
const normalizedPath = folderPath.startsWith('/') ? folderPath : `/${folderPath}`
9191
const cleanPath = normalizedPath.endsWith('/') ? normalizedPath.slice(0, -1) : normalizedPath
92-
// A "." folder segment was collapsed by the URL parser before; keep that, but never allow ".."
92+
// Drop "." folder segments (the URL parser would collapse them); ".." is rejected below
9393
const uploadPath = (folderPath ? `${cleanPath}/${fileName}` : `/${fileName}`)
9494
.split('/')
9595
.filter((segment, index, segments) => segment !== '.' || index === segments.length - 1)

‎apps/sim/tools/gmail/utils.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export async function fetchThreadingHeaders(
5858
return {}
5959
}
6060

61-
/** Case-insensitive lookup of a top-level message header value. */
6261
/** Case-insensitive header lookup on a Gmail message payload. */
6362
export function getHeaderValue(
6463
headers: ReadonlyArray<{ name: string; value: string }> | undefined,

0 commit comments

Comments
 (0)