commit c4c89f401431a50a41580aea6b4182277eec7a7f parent 8b089c98d46bd446ad19731c2bac4a1cf010e17f Author: Florian Dold <florian@dold.me> Date: Tue, 13 Feb 2024 11:41:47 +0100 wallet-core: fix missing encoding of exchange URLs in task IDs Diffstat:
| M | packages/taler-wallet-core/src/operations/common.ts | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts @@ -934,9 +934,9 @@ export function constructTaskIdentifier(p: ParsedTaskIdentifier): TaskId { case PendingTaskType.Deposit: return `${p.tag}:${p.depositGroupId}` as TaskId; case PendingTaskType.ExchangeCheckRefresh: - return `${p.tag}:${p.exchangeBaseUrl}` as TaskId; + return `${p.tag}:${encodeURIComponent(p.exchangeBaseUrl)}` as TaskId; case PendingTaskType.ExchangeUpdate: - return `${p.tag}:${p.exchangeBaseUrl}` as TaskId; + return `${p.tag}:${encodeURIComponent(p.exchangeBaseUrl)}` as TaskId; case PendingTaskType.PeerPullDebit: return `${p.tag}:${p.peerPullDebitId}` as TaskId; case PendingTaskType.PeerPushCredit: