aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2020-07-26 21:25:44 -0400
committerLibravatar Renard 2020-07-26 21:25:44 -0400
commit20904a13060604c2fb658a416fabd8958469a506 (patch)
tree1a7d3de15cf05f314f81a75fbd1abdf0537e90a3
parent51a9a8f585607ce8381aac8dd1c07b6658b342e8 (diff)
parent278d5a5021317ee9ec8b4a7b255254466c85a560 (diff)
downloadweabot-20904a13060604c2fb658a416fabd8958469a506.tar.gz
weabot-20904a13060604c2fb658a416fabd8958469a506.tar.xz
weabot-20904a13060604c2fb658a416fabd8958469a506.zip
Merge branch 'master' of https://git.bienvenidoainternet.org/priv/www
-rwxr-xr-xcgi/weabot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index c91570c..3c5d0f5 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -30,7 +30,6 @@ _DEBUG = False
# Set to True to save performance data to weabot.txt
_LOG = False
-
class weabot(object):
def __init__(self, environ, start_response):
global _DEBUG
@@ -720,7 +719,8 @@ class weabot(object):
# hash
if board["slip"] in ['1', '3']:
if hide_end:
- slips.append('-'.join(('****', '****')))
+ slips.append(
+ '-'.join((getMD5(ip + post["name"])[:4], '****')))
elif addressIsTor(ip):
slips.append(
'-'.join(('****', getMD5(self.environ["HTTP_USER_AGENT"])[:4])))