diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-18 20:23:24 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-18 20:23:24 +0200 |
commit | a0ba8a0488198711ce75ac4b3be5a46a784eb686 (patch) | |
tree | 7398b8f52fa1ded9d3148226ed1278d7328918dd /module/web | |
parent | repaired cnl (diff) | |
download | pyload-a0ba8a0488198711ce75ac4b3be5a46a784eb686.tar.xz |
fixed captcha on webif + configparser
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/json_app.py | 2 |
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} |