Skip to content

Commit

Permalink
feat(UI-1260): github custom oauth - encode connection data
Browse files Browse the repository at this point in the history
  • Loading branch information
RonenMars committed Jan 30, 2025
1 parent b49d052 commit 042bbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useConnectionForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const useConnectionForm = (validationSchema: ZodObject<ZodRawShape>, mode

const getSpecificParams = (connectionData: Record<string, string>, specificKeys: string[]) => {
return specificKeys
.map((key) => (connectionData[key] ? `${key}=${connectionData[key]}` : ""))
.map((key) => (connectionData[key] ? `${key}=${encodeURIComponent(connectionData[key])}` : ""))
.filter((param) => param !== "")
.join("&");
};
Expand Down

0 comments on commit 042bbf0

Please sign in to comment.