summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/webui/app/api.py')
-rw-r--r--pyload/webui/app/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/webui/app/api.py b/pyload/webui/app/api.py
index 7f1b230da..591b97437 100644
--- a/pyload/webui/app/api.py
+++ b/pyload/webui/app/api.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
import traceback
+import urllib
from itertools import chain
-from urllib import unquote
from SafeEval import const_eval as literal_eval
from bottle import route, request, response, HTTPError
@@ -46,7 +46,7 @@ def call_api(func, args=""):
for x, y in chain(request.GET.iteritems(), request.POST.iteritems()):
if x == "session":
continue
- kwargs[x] = unquote(y)
+ kwargs[x] = urllib.unquote(y)
try:
return callApi(func, *args, **kwargs)