Skip to content

Commit

Permalink
Merge pull request #163 from mboudet/fix_155
Browse files Browse the repository at this point in the history
Fix #155
  • Loading branch information
abretaud committed Jan 28, 2021
2 parents 20133b3 + 47a55e1 commit a50dd69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions askomics/api/file.py
@@ -1,6 +1,7 @@
"""Api routes"""
import sys
import traceback
import urllib

from askomics.api.auth import login_required
from askomics.libaskomics.FilesHandler import FilesHandler
Expand Down Expand Up @@ -315,6 +316,9 @@ def serve_file(path, user_id, username):
file
the file
"""
# Re-encode the path because we stored the encoded file name
path = urllib.parse.quote(path)

dir_path = "{}/{}_{}/ttl".format(
current_app.iniconfig.get('askomics', 'data_directory'),
user_id,
Expand Down

0 comments on commit a50dd69

Please sign in to comment.