Skip to content

Commit 9695b88

Browse files
committed
timestamper: Escape / in credentials
1 parent 8577502 commit 9695b88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

installer.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Name: "setupnamecoind"; Description: "Configure Namecoin Core to allow RPC"
3838
Source: "build\namecoin-0.13.99-win32-setup-unsigned.exe"; DestDir: "{app}"; Flags: ignoreversion
3939
Source: "build\exe.win32-2.7\chainsign.exe"; DestDir: "{app}"; Flags: ignoreversion
4040
Source: "build\exe.win32-2.7\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
41-
Source: "namecoin.conf"; DestDir: "{userappdata}\Namecoin"; Tasks: setupnamecoind Flags: uninsneveruninstall onlyifdoesntexist
41+
Source: "namecoin.conf"; DestDir: "{userappdata}\Namecoin"; Tasks: setupnamecoind; Flags: uninsneveruninstall onlyifdoesntexist
4242

4343
[Icons]
4444
Name: "{group}\ChainSign"; Filename: "{app}\chainsign.EXE"; WorkingDir: "{app}"

timestamper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def rpcurl_from_config(coin, default=None, config_path=None):
129129
elif os.path.exists(cookie_path):
130130
# Cookie authentication
131131
with open(cookie_path) as cfd:
132-
credentials = cfd.read().decode('utf-8').strip()
132+
credentials = cfd.read().decode('utf-8').strip() \
133+
.replace('/', '%2F')
133134
else:
134135
return default
135136

0 commit comments

Comments
 (0)