Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/sim/lib/internal/sharepoint/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion apps/sim/tools/gmail/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading