summaryrefslogtreecommitdiffstats
path: root/module/web/json_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/json_app.py')
-rw-r--r--module/web/json_app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py
index 9cf1d236d..7a6baffd8 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import base64
-#from os.path import join, exists
+from os.path import join, exists
from traceback import print_exc
from shutil import copyfileobj
@@ -228,7 +228,7 @@ def link_order(ids):
def add_package():
name = request.forms.get("add_name", "New Package").strip()
queue = int(request.forms['add_dest'])
- links = request.forms['add_links'].decode("utf8", "ignore")
+ links = decode(request.forms['add_links'])
links = links.split("\n")
pw = request.forms.get("add_password", "").strip("\n\r")