summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache/thread_cache.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-07-30 12:29:11 +0000
committerNicolas Martinelli <nim@odoo.com>2020-07-31 15:51:57 +0000
commit1c21fcf275633d05b55877256b64f72857b99a61 (patch)
tree99d9e5aeef806ef73377a91c648619f192afc0b1 /addons/mail/static/src/models/thread_cache/thread_cache.js
parent7095a651a2a7ae93140c7c4058bfb5fdd406adc4 (diff)
[FIX] im_livechat: remove accent of cookie
- Install `website_livechat` - Publish the demo livechat - Set an accent to the operator name, e.g. 'Bòb' - Visit the website with Safari and start a chat session - Close the window - Refresh the page Error in browser console that sometime appear as a traceback. It happens because Safari refuses to send any cookie containing non-ASCII characters [1]. Actually, Safari strips the value before the first non-ASCII character, making the JSON string corrupted. Having such special characters in cookies is uncommon, so we only clean the necessary string. Moreover, it's better to avoid our tools modifying all cookies set without being aware of it. [1] https://stackoverflow.com/questions/1969232/what-are-allowed-characters-in-cookies/1969339#1969339 opw-2273293 closes odoo/odoo#55277 X-original-commit: df003873c20357343f8aa17a645acfb6b03ef68b Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions