summaryrefslogtreecommitdiffstats
path: root/module/remote
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-03-13 21:21:44 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-03-13 21:21:44 +0100
commita2990617833baab37f39d0fe5f877849643e4738 (patch)
tree2304c8f7380f4a688f471d83378bfec07b1256a2 /module/remote
parentmake sure everything is written to disk before merging (diff)
downloadpyload-a2990617833baab37f39d0fe5f877849643e4738.tar.xz
captcha fix
Diffstat (limited to 'module/remote')
-rw-r--r--module/remote/thriftbackend/Handler.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/remote/thriftbackend/Handler.py b/module/remote/thriftbackend/Handler.py
index d71b4337e..7209c6bd5 100644
--- a/module/remote/thriftbackend/Handler.py
+++ b/module/remote/thriftbackend/Handler.py
@@ -6,6 +6,8 @@ from thriftgen.pyload.Pyload import Iface
from module.PyFile import PyFile
from module.utils import freeSpace
+from base64 import b64encode
+
class Handler(Iface):
def __init__(self, backend):
self.backend = backend
@@ -442,10 +444,10 @@ class Handler(Iface):
Parameters:
- exclusive
"""
- tid, data, type = self.serverMethods.get_captcha_task(exclusive)
- tid = int(tid)
-
- t = CaptchaTask(tid, data, type)
+ t = CaptchaTask()
+ t.tid, t.data, t.type = self.serverMethods.get_captcha_task(exclusive)
+ t.tid = int(t.tid)
+ t.data = b64encode(t.data)
return t
def getCaptchaTaskStatus(self, tid):