Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
ab3a69a34626
Commit
576f8863
authored
May 20, 2010
by
Sylvain Thénault
Browse files
[bfss] ensure base name doesn't contain path separator
--HG-- branch : stable
parent
d29d1a1ce15d
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/sources/storages.py
View file @
ab3a69a3
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment