Skip to content

Commit 3c76b47

Browse files
waleedlatif1claude
andcommitted
fix(selectors): tighten SharePoint site ID validation to exclude underscores
SharePoint composite site IDs use hostname,guid,guid format where only alphanumerics, periods, hyphens, and commas are valid characters. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b2cb783 commit 3c76b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/lib/core/security/input-validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ export function validateSharePointSiteId(
584584
}
585585
}
586586

587-
if (!/^[\w.\-,]+$/.test(value)) {
587+
if (!/^[a-zA-Z0-9.\-,]+$/.test(value)) {
588588
logger.warn('Invalid characters in SharePoint site ID', {
589589
paramName,
590590
value: value.substring(0, 100),

0 commit comments

Comments
 (0)