changeset 5228:6aa48433a5f4

fix undefined attribute in hosts_deny check
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 28 Oct 2009 21:14:17 +0100
parents 85a84c47e49c
children eb786205dbdd
files MoinMoin/web/utils.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/utils.py	Wed Oct 21 08:51:42 2009 -0700
+++ b/MoinMoin/web/utils.py	Wed Oct 28 21:14:17 2009 +0100
@@ -35,10 +35,10 @@
         remote_addr = request.remote_addr
         for host in request.cfg.hosts_deny:
             if host[-1] == '.' and remote_addr.startswith(host):
-                logging.debug("hosts_deny (net): %s" % str(forbidden))
+                logging.debug("hosts_deny (net): %s" % remote_addr)
                 raise Forbidden()
             if remote_addr == host:
-                logging.debug("hosts_deny (ip): %s" % str(forbidden))
+                logging.debug("hosts_deny (ip): %s" % remote_addr)
                 raise Forbidden()
     return False