Skip to content

Commit

Permalink
fix(ui): strip inner quotes from argoToken (#5677)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Ruoss <[email protected]>
  • Loading branch information
Michael Ruoss authored Apr 15, 2021
1 parent bf5d7bf commit 1d367dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/userinfo/components/cli-help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const CliHelp = () => {
.split(';')
.map(x => x.trim())
.find(x => x.startsWith('authorization=')) || ''
).replace('authorization=', '');
).replace(/^authorization="?(.*)"?$/, '$1');

const text = `export ARGO_SERVER='${document.location.hostname}:${document.location.port || (argoSecure ? 443 : 80)}'
export ARGO_HTTP1=true
Expand Down

0 comments on commit 1d367dd

Please sign in to comment.