You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2021/06/27 22:08:05 UTC

svn commit: r1891096 - /comdev/reporter.apache.org/trunk/scripts/wsgi.py

Author: sebb
Date: Sun Jun 27 22:08:04 2021
New Revision: 1891096

URL: http://svn.apache.org/viewvc?rev=1891096&view=rev
Log:
Don't capture unnecessary data

Modified:
    comdev/reporter.apache.org/trunk/scripts/wsgi.py

Modified: comdev/reporter.apache.org/trunk/scripts/wsgi.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/wsgi.py?rev=1891096&r1=1891095&r2=1891096&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/wsgi.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/wsgi.py Sun Jun 27 22:08:04 2021
@@ -32,7 +32,7 @@ def app(environ, start_fn):
         bauth = re.match(r"Basic (.+)", environ.get('HTTP_AUTHORIZATION', 'foo'))
         if bauth:
             bdec = base64.b64decode(bauth.group(1)).decode('utf-8')
-            m = re.match("^(.+?):(.+)$", bdec)
+            m = re.match("^(.+?):.+$", bdec)
             if m:
                 user = m.group(1)
         output = webmap[uri](environ, user)