From 8dce2ff5f85863fcd08a117093bc4304770f6def Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Wed, 14 Apr 2021 20:30:16 +0200 Subject: [PATCH] fix(ui): strip inner quotes from argoToken closes #4991 Signed-off-by: Michael Ruoss --- ui/src/app/userinfo/components/cli-help.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/userinfo/components/cli-help.tsx b/ui/src/app/userinfo/components/cli-help.tsx index b31baafcf2af..24a567c15107 100644 --- a/ui/src/app/userinfo/components/cli-help.tsx +++ b/ui/src/app/userinfo/components/cli-help.tsx @@ -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