aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar bai 2020-07-26 21:25:11 -0400
committerLibravatar bai 2020-07-26 21:25:11 -0400
commit278d5a5021317ee9ec8b4a7b255254466c85a560 (patch)
tree58dd78a8f379559c2d1407350ae85977d3d188cc /cgi
parent7293ea47717c49d66651edef02c5c8def7df9333 (diff)
downloadweabot-278d5a5021317ee9ec8b4a7b255254466c85a560.tar.gz
weabot-278d5a5021317ee9ec8b4a7b255254466c85a560.tar.xz
weabot-278d5a5021317ee9ec8b4a7b255254466c85a560.zip
Restaurado el slip para usuarios de caps
Diffstat (limited to 'cgi')
-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])))