Skip to content

Commit

Permalink
Just being sure (thanks @ralsina).
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 22, 2015
1 parent f173fca commit d895162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/utils.py
Expand Up @@ -1001,7 +1001,7 @@ def get_asset_path(path, themes, files_folders={'files': ''}, _themes_dir='theme
if os.path.isfile(candidate):
return candidate
for src, rel_dst in files_folders.items():
relpath = os.path.relpath(path, rel_dst)
relpath = os.path.normpath(os.path.relpath(path, rel_dst))
if not relpath.startswith('..' + os.path.sep):
candidate = os.path.abspath(os.path.join(src, relpath))
if os.path.isfile(candidate):
Expand Down

0 comments on commit d895162

Please sign in to comment.