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

mod fix for cookies: set wbinfo.mod to replay_mod (mp_ or '') to avoid cookie issues caused by content loaded with wrong modifier (eg. with yt comments) (#330)

This commit is contained in:
Ilya Kreymer 2018-05-21 11:58:25 -07:00 committed by GitHub
parent 5f3d37bb44
commit 1faa75a126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -348,6 +348,7 @@ class RewriterApp(object):
top_url,
environ,
framed_replay,
replay_mod=self.replay_mod,
config=self.config))
cookie_rewriter = None

View File

@ -18,7 +18,7 @@
wbinfo.timestamp = "{{ cdx.timestamp }}";
wbinfo.request_ts = "{{ wb_url.timestamp }}";
wbinfo.prefix = decodeURI("{{ wb_prefix }}");
wbinfo.mod = "{{ wb_url.mod }}";
wbinfo.mod = "{{ replay_mod }}";
wbinfo.is_framed = {{ is_framed }};
wbinfo.is_live = {{ is_live }};
wbinfo.coll = "{{ coll }}";