diff options
author | Florian Dold <florian@dold.me> | 2024-02-13 11:41:47 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-13 11:41:47 +0100 |
commit | c4c89f401431a50a41580aea6b4182277eec7a7f (patch) | |
tree | 9a665a9fc10147a23187fdfa0cb864c8284deb4c /packages/taler-wallet-core | |
parent | 8b089c98d46bd446ad19731c2bac4a1cf010e17f (diff) | |
download | wallet-core-c4c89f401431a50a41580aea6b4182277eec7a7f.tar.xz |
wallet-core: fix missing encoding of exchange URLs in task IDs
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/operations/common.ts | 4 |
1 files 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 index 460a32666..4c7c55212 100644 --- 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: |