Skip to content

Commit

Permalink
Fix for cache folder set as relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
spl0k committed Oct 14, 2017
1 parent 62bcce3 commit da4cde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supysonic/api/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def cover_art():
return send_file(os.path.join(res.path, 'cover.jpg'))

size_path = os.path.join(config.get('webapp', 'cache_dir'), str(size))
path = os.path.join(size_path, str(res.id))
path = os.path.abspath(os.path.join(size_path, str(res.id)))
if os.path.exists(path):
return send_file(path)
if not os.path.exists(size_path):
Expand Down

0 comments on commit da4cde7

Please sign in to comment.