aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rwxr-xr-xcgi/weabot.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index 8a9f82e..a54fd2b 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -403,10 +403,10 @@ class weabot(object):
def make_post(self, ip, boarddir, parent, trap1, trap2, name, email, subject, message, file, file_original, spoil, oek_file, password, noimage, mobile):
_STARTTIME = time.clock() # Comment if not debug
- #if hostIsBanned(ip):
- # raise UserError, "Sufijo de host en lista negra."
- #if addressIsTor(ip):
- # raise UserError, "Proxy prohibido."
+ if hostIsBanned(ip):
+ raise UserError, "Sufijo de host en lista negra."
+ if addressIsTor(ip):
+ raise UserError, "Proxy prohibido."
# open database
OpenDb()
@@ -414,9 +414,9 @@ class weabot(object):
# set the board
board = setBoard(boarddir)
- #if board["dir"] not in ["world"]:
- # if addressIsProxy(ip) or addressIsBannedCountry(ip) or not addressIsES(ip):
- # raise UserError, "Proxy prohibido en esta sección."
+ if board["dir"] not in ["world"]:
+ if addressIsProxy(ip) or addressIsBannedCountry(ip) or not addressIsES(ip):
+ raise UserError, "Proxy prohibido en esta sección."
# check length of fields
if len(name) > 50: