Commit 202bc07d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Arnaud Fontaine

Zope2: workaround for broken implementation of Basic auth encoding.

parent 1d6b5b93
......@@ -55,6 +55,10 @@ class ERP5DumbHTTPExtractionPlugin(BasePlugin):
security.declarePrivate('extractCredentials')
@UnrestrictedMethod
def extractCredentials(self, request):
# BBB Zope2
# Fix possibly broken _auth for very long auth
if getattr(request, '_auth', '').lower().startswith('basic '):
request._auth = request._auth.replace('\n', '')
return DumbHTTPExtractor().extractCredentials(request);
#Form for new plugin in ZMI
......
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