Commit 7eb96ab7 authored by Georgios Dagkakis's avatar Georgios Dagkakis

fixup! Zope2: workaround for broken implementation of Basic auth encoding.

parent 27d533ff
Pipeline #30106 failed with stage
in 0 seconds
...@@ -57,7 +57,7 @@ class ERP5DumbHTTPExtractionPlugin(BasePlugin): ...@@ -57,7 +57,7 @@ class ERP5DumbHTTPExtractionPlugin(BasePlugin):
def extractCredentials(self, request): def extractCredentials(self, request):
# BBB Zope2 # BBB Zope2
# Fix possibly broken _auth for very long auth # Fix possibly broken _auth for very long auth
if getattr(request, '_auth', '').lower().startswith('basic '): if (getattr(request, '_auth', '') or '').lower().startswith('basic '):
request._auth = request._auth.replace('\n', '') request._auth = request._auth.replace('\n', '')
return DumbHTTPExtractor().extractCredentials(request); return DumbHTTPExtractor().extractCredentials(request);
......
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