• Vincent Ardisson's avatar
    weboob.browser.browsers: no pickling when saving cookie jar in StatesMixin · 140ce810
    Vincent Ardisson authored
    pickle may be unsafe for loading data. All we want is a cookie jar, we
    can just serialize its cookies, not necessarily the whole jar with its
    type and policy.
    
    Old format is base64(compress(pickle(jar))).
    New format is base64(compress(json(jar))) where JSON conversion is on
    the list of cookies (taking name, value, domain, path, secure (https)
    and expires).
    
    dump_state will now save using the new format while load_state supports
    both new and old format. This allows compatibility for some time, then
    later old format support in load_state will be dropped too.
    140ce810
Name
Last commit
Last update
.ci Loading commit data...
.gitlab/issue_templates Loading commit data...
contrib Loading commit data...
desktop Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
tools Loading commit data...
weboob Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...