# HG changeset patch # User Sylvain Thénault # Date 1274344833 -7200 # Node ID ab3a69a346268e7c92cce2806fd534ac82fa9d57 # Parent d29d1a1ce15d27ee68949cda4444ef96d8b0da62 [bfss] ensure base name doesn't contain path separator diff -r d29d1a1ce15d -r ab3a69a34626 server/sources/storages.py --- a/server/sources/storages.py Thu May 20 10:40:55 2010 +0200 +++ b/server/sources/storages.py Thu May 20 10:40:33 2010 +0200 @@ -82,7 +82,7 @@ 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)