diff options
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/listinfo.py | 2 | ||||
-rw-r--r-- | Mailman/Utils.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index 4de5ccea..c13fdb26 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -190,7 +190,7 @@ def list_listinfo(mlist, lang): remote = os.environ.get('HTTP_FORWARDED_FOR', os.environ.get('HTTP_X_FORWARDED_FOR', os.environ.get('REMOTE_ADDR', - 'w.x.y.z')) + 'w.x.y.z'))) # Try to accept a range in case of load balancers, etc. (LP: #1447445) if remote.find('.') >= 0: # ipv4 - drop last octet diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 36c08aaf..fe513c8e 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -266,7 +266,10 @@ def GetPathPieces(envar='PATH_INFO'): os.environ.get('HTTP_X_FORWARDED_FOR', os.environ.get('REMOTE_ADDR', 'unidentified origin'))) - syslog('error', 'Warning: Possible malformed path attack domain=%s remote=%s' % get_domain(), remote) + syslog('error', + 'Warning: Possible malformed path attack domain=%s remote=%s', + get_domain(), + remote) return [p for p in path.split('/') if p] return None |