1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Properly encode load_url (#659)

This commit is contained in:
Marius Elsfjordstrand Beck 2021-07-18 22:50:56 +02:00 committed by GitHub
parent 843fe28ed8
commit 3e5d97f70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,9 +157,9 @@ class RemoteIndexSource(BaseIndexSource):
if name:
source_coll = params.get('param.' + name + '.src_coll', '')
cdx[self.url_field] = self.replay_url.format(url=cdx['url'],
cdx[self.url_field] = res_template(self.replay_url, dict(url=cdx['url'],
timestamp=cdx['timestamp'],
src_coll=source_coll)
src_coll=source_coll))
def __repr__(self):
return '{0}({1}, {2})'.format(self.__class__.__name__,
self.api_url,