aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar TOW 2019-03-28 23:32:49 -0300
committerLibravatar TOW 2019-03-28 23:32:49 -0300
commit96567cf88befcd90a82c5cf5ed536c25ed5cddb9 (patch)
tree60741e41b9e9fb0882e2ca07b7845cec4adff3a6 /cgi
parent95dfe14528663923ca2a88ec928f1d8d9df2402b (diff)
downloadweabot-96567cf88befcd90a82c5cf5ed536c25ed5cddb9.tar.gz
weabot-96567cf88befcd90a82c5cf5ed536c25ed5cddb9.tar.xz
weabot-96567cf88befcd90a82c5cf5ed536c25ed5cddb9.zip
Arreglado problema con el entorno FastCGI
Estoy seguro que he arreglado esta mierda como 3 veces
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 2e11252..056a933 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -668,9 +668,9 @@ class weabot(object):
if hide_end:
slips.append('-'.join(('****', '****')))
elif addressIsTor(ip):
- slips.append('-'.join(('****', getMD5(os.environ["HTTP_USER_AGENT"])[:4])))
+ slips.append('-'.join(('****', getMD5(self.environ["HTTP_USER_AGENT"])[:4])))
else:
- slips.append('-'.join((getMD5(ip)[:4], getMD5(os.environ["HTTP_USER_AGENT"])[:4])))
+ slips.append('-'.join((getMD5(ip)[:4], getMD5(self.environ["HTTP_USER_AGENT"])[:4])))
# host
if board["slip"] == '2':