Commit 9020be4d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

Zope2: workaround for broken implementation of Basic auth encoding.

parent 12b7aaa0
......@@ -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