From 1d367ddfd48d8d17b48cca83da9454cee5c6463f Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Thu, 15 Apr 2021 17:03:07 +0200 Subject: [PATCH] fix(ui): strip inner quotes from argoToken (#5677) 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