Skip to content

Commit fa67505

Browse files
author
MarcoFalke
committed
qa: Quote wallet name for rpc path
1 parent c88529a commit fa67505

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 (
@@ -184,7 +185,7 @@ def get_wallet_rpc(self, wallet_name):
184185
return self.cli("-rpcwallet={}".format(wallet_name))
185186
else:
186187
assert self.rpc_connected and self.rpc, self._node_msg("RPC not connected")
187-
wallet_path = "wallet/%s" % wallet_name
188+
wallet_path = "wallet/{}".format(urllib.parse.quote(wallet_name))
188189
return self.rpc / wallet_path
189190

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

0 commit comments

Comments
 (0)