From 2b2d4857307dae78a34f2d92abf4ec4bded7b68d Mon Sep 17 00:00:00 2001 From: Cervinko Cera Date: Sun, 7 Aug 2016 22:10:00 +0200 Subject: [PATCH] upload more than pdf fixes --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 1ee62b5d..346cafdd 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1140,7 +1140,7 @@ def upload(): title = meta.title author = meta.author - title_dir = helper.get_valid_filename(title, False) + title_dir = helper.get_valid_filename(title.decode('utf-8'), False) author_dir = helper.get_valid_filename(author.decode('utf-8'), False) data_name = title_dir filepath = config.DB_ROOT + "/" + author_dir + "/" + title_dir