summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 20:23:24 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 20:23:24 +0200
commita0ba8a0488198711ce75ac4b3be5a46a784eb686 (patch)
tree7398b8f52fa1ded9d3148226ed1278d7328918dd /module/web
parentrepaired cnl (diff)
downloadpyload-a0ba8a0488198711ce75ac4b3be5a46a784eb686.tar.xz
fixed captcha on webif + configparser
Diffstat (limited to 'module/web')
-rw-r--r--module/web/json_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py
index 53caeb9f1..959b3d974 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -328,7 +328,7 @@ def set_captcha():
task = PYLOAD.getCaptchaTask()
- if id:
+ if task.tid >= 0:
src = "data:image/%s;base64,%s" % (task.type, task.data)
return {'captcha': True, 'id': task.tid, 'src': src, 'result_type' : task.resultType}