Commit 15bf6704 authored by Yusei Tahara's avatar Yusei Tahara

Use base64.standard_b64encode instead of base64.encodestring, otherwise

extra trailing newline will be added.

http://docs.python.org/lib/module-base64.html


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9c5262b
......@@ -258,7 +258,7 @@ class WizardTool(BaseTool):
user_and_password = self._getSubsribedUserAndPassword()
if (len(user_and_password)==2 and
user_and_password[0] and user_and_password[1]):
auth = 'Basic %s' % base64.encodestring(
auth = 'Basic %s' % base64.standard_b64encode(
'%s:%s' % user_and_password).strip()
header_dict['Authorization'] = auth
......
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