Skip to content

Commit

Permalink
Merge pull request #397 from OWASP/387-share-spaces
Browse files Browse the repository at this point in the history
Fix: GA share link spaces
  • Loading branch information
john681611 committed Sep 19, 2023
2 parents 1071323 + f29508f commit eb13d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ export const GapAnalysis = () => {
<Button
onClick={() => {
navigator.clipboard.writeText(
`${window.location.origin}/gap_analysis?base=${BaseStandard}&compare=${CompareStandard}`
`${window.location.origin}/gap_analysis?base=${encodeURIComponent(
BaseStandard || ''
)}&compare=${encodeURIComponent(CompareStandard || '')}`
);
}}
target="_blank"
Expand Down

0 comments on commit eb13d0c

Please sign in to comment.