I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1e234e34 authored by sponge's avatar sponge
Browse files

Debugging for meeh

parent 81a216cc
No related branches found
No related tags found
No related merge requests found
...@@ -190,13 +190,14 @@ def application(environ, start_response): ...@@ -190,13 +190,14 @@ def application(environ, start_response):
# #
# zap badness from path # zap badness from path
# #
print "path given is" + path #print "path given is " + repr(path)
chkpath = path.replace("'","").replace("/","") chkpath = path.replace("'","").replace("/","")
# check to see if we have this entry in the database at all. # check to see if we have this entry in the database at all.
cur.execute("select * from entry where wht = ?", chkpath) cur.execute("select * from entry where wht = ?", chkpath)
chk = cur.fetchall() chk = cur.fetchall()
if len(chk) == 0: if len(chk) == 0:
resp = Response("Do you not have anything better to do?", status=400, mimetype='text/plain') resp = Response("Do you not have anything better to do?\nRequested file "+repr(path)+"\nchk "+repr(chkpath)+"\n", status=400, mimetype='text/plain')
else: else:
try: try:
# load file # load file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment