Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
8af897b6
Commit
8af897b6
authored
Sep 10, 2019
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5VCS: Fix WorkingCopy with path containing '..'.
parent
20483699
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5VCS/WorkingCopy.py
product/ERP5VCS/WorkingCopy.py
+2
-2
No files found.
product/ERP5VCS/WorkingCopy.py
View file @
8af897b6
...
...
@@ -118,8 +118,8 @@ class WorkingCopy(Implicit):
parts
=
path
.
split
(
os
.
sep
)
try
:
i
=
len
(
parts
)
-
parts
[::
-
1
].
index
(
os
.
pardir
)
parts
[:
i
]
=
os
.
path
.
realpath
(
parts
[:
i
].
join
(
os
.
sep
)),
path
=
parts
.
join
(
os
.
sep
)
parts
[:
i
]
=
os
.
path
.
realpath
(
os
.
sep
.
join
(
parts
[:
i
]
)),
path
=
os
.
sep
.
join
(
parts
)
except
ValueError
:
pass
# Allow symlinks inside instance home.
...
...
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