[IMP] cookies: when retrieving session cookie, catch eventual parsing errors and...
authorMartin Trigaux <mat@openerp.com>
Thu, 27 Mar 2014 12:08:26 +0000 (13:08 +0100)
committerMartin Trigaux <mat@openerp.com>
Thu, 27 Mar 2014 12:08:26 +0000 (13:08 +0100)
commit64ecfa40ec898bbfc5f4faa22eee4b98b024e524
treee6b184c7d2f17369ecdbf9edc7165a656c75304f
parent85805282b6994ad7a84e4cce24435332c1f664b5
parenta04f73ee8051b68f5b95d6f71d3b637a8c9a8c92
[IMP] cookies: when retrieving session cookie, catch eventual parsing errors and remove cookie if incorrect (opw 605648)

In case of unparsable cookie (modified, corrupted,...), openerp would not load and crash with white screen until expiration.
With the fix goes back to login screen.

bzr revid: mat@openerp.com-20140327120826-2p6ebnojtmdl1wpm
addons/web/static/src/js/coresetup.js