mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-28 08:32:29 +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:
parent
5f3d37bb44
commit
1faa75a126
@ -348,6 +348,7 @@ class RewriterApp(object):
|
|||||||
top_url,
|
top_url,
|
||||||
environ,
|
environ,
|
||||||
framed_replay,
|
framed_replay,
|
||||||
|
replay_mod=self.replay_mod,
|
||||||
config=self.config))
|
config=self.config))
|
||||||
|
|
||||||
cookie_rewriter = None
|
cookie_rewriter = None
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
wbinfo.timestamp = "{{ cdx.timestamp }}";
|
wbinfo.timestamp = "{{ cdx.timestamp }}";
|
||||||
wbinfo.request_ts = "{{ wb_url.timestamp }}";
|
wbinfo.request_ts = "{{ wb_url.timestamp }}";
|
||||||
wbinfo.prefix = decodeURI("{{ wb_prefix }}");
|
wbinfo.prefix = decodeURI("{{ wb_prefix }}");
|
||||||
wbinfo.mod = "{{ wb_url.mod }}";
|
wbinfo.mod = "{{ replay_mod }}";
|
||||||
wbinfo.is_framed = {{ is_framed }};
|
wbinfo.is_framed = {{ is_framed }};
|
||||||
wbinfo.is_live = {{ is_live }};
|
wbinfo.is_live = {{ is_live }};
|
||||||
wbinfo.coll = "{{ coll }}";
|
wbinfo.coll = "{{ coll }}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user