Commit 576f8863 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[bfss] ensure base name doesn't contain path separator

branch : stable
parent d29d1a1ce15d
......@@ -82,7 +82,7 @@ def uniquify_path(dirpath, basename):
XXX subject to race condition.
path = osp.join(dirpath, basename)
path = osp.join(dirpath, basename.replace(osp.sep, '-'))
if not osp.isfile(path):
return path
base, ext = osp.splitext(path)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment