changeset 2979:b95840d1e675

antispam: MoinMaster wiki shall not fetch updates from itself (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Jan 2008 23:04:32 +0100
parents b2546fd98514
children 54a6595fd585
files MoinMoin/security/antispam.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/security/antispam.py	Sat Jan 05 23:02:27 2008 +0100
+++ b/MoinMoin/security/antispam.py	Sat Jan 05 23:04:32 2008 +0100
@@ -157,7 +157,8 @@
             blacklist = []
             latest_mtime = 0
             for pn in BLACKLISTPAGES:
-                do_update = (pn != "LocalBadContent")
+                do_update = (pn != "LocalBadContent" and
+                             request.cfg.interwikiname != 'MoinMaster') # MoinMaster wiki shall not fetch updates from itself
                 blacklist_mtime, blacklist_entries = getblacklist(request, pn, do_update)
                 blacklist += blacklist_entries
                 latest_mtime = max(latest_mtime, blacklist_mtime)