Commit 4aa8065b authored by Ivan Tyagov's avatar Ivan Tyagov

Send browser cookies for local ERP5 instance.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24161 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f898edf
......@@ -336,8 +336,10 @@ class WizardTool(BaseTool):
for cookie in cookiejar:
# unconditionally send all cookies (no matter if expired or not) as URL is always the same
header_dict['Cookie'] += '%s=%s;' %(cookie.name, cookie.value)
# XXX: include cookies from local browser (like show/hide tabs) which are set directly
# include cookies from local browser (like show/hide tabs) which are set directly
# by client JavaScript code (i.e. not sent from server)
for cookie_name, cookie_value in self.REQUEST.cookies.items():
header_dict['Cookie'] += '%s=%s;' %(cookie_name, cookie_value)
# add HTTP referer (especially useful in Localizer when changing language)
header_dict['REFERER'] = self.REQUEST.get('HTTP_REFERER', None) or referer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment