Skip to content

Commit 489b51b

Browse files
committed
Merge #13823: qa: quote path in authproxy for external multiwallets
fa67505 qa: Quote wallet name for rpc path (MarcoFalke) Pull request description: When using external multiwallets they are specified by their full path which might contain non-ascii characters (e.g. umlauts or emojis). Fix this by url-quoting the path. Tree-SHA512: 7cc66514579d9f602f88a6817c5ab43a44c6d3711df452dc904173f0bc34e2c0b2c34877497f06b61f6720c532fa183053f54622dc454e316c89cee7eaa72463
2 parents 9c4324d + fa67505 commit 489b51b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/functional/test_framework/test_node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import subprocess
1616
import tempfile
1717
import time
18+
import urllib.parse
1819

1920
from .authproxy import JSONRPCException
2021
from .util import (
@@ -180,7 +181,7 @@ def get_wallet_rpc(self, wallet_name):
180181
return self.cli("-rpcwallet={}".format(wallet_name))
181182
else:
182183
assert self.rpc_connected and self.rpc, self._node_msg("RPC not connected")
183-
wallet_path = "wallet/%s" % wallet_name
184+
wallet_path = "wallet/{}".format(urllib.parse.quote(wallet_name))
184185
return self.rpc / wallet_path
185186

186187
def stop_node(self, expected_stderr=''):

0 commit comments

Comments
 (0)