From 278d5a5021317ee9ec8b4a7b255254466c85a560 Mon Sep 17 00:00:00 2001 From: bai Date: Sun, 26 Jul 2020 21:25:11 -0400 Subject: Restaurado el slip para usuarios de caps --- cgi/weabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi') 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]))) -- cgit v1.2.1-18-gbd029