Commit fdc07e80 authored by Christophe Dumez's avatar Christophe Dumez

- Fixed security bug in revertZODB


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8309 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e9d5a76
...@@ -882,7 +882,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -882,7 +882,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
# Reinstall removed or modified files # Reinstall removed or modified files
for path in other_files : for path in other_files :
path_list = self._getWorkingPath(path).split(os.sep) path_list = self._getWorkingPath(self.relativeToAbsolute(path, business_template)).split(os.sep)
if 'bt' not in path_list: if 'bt' not in path_list:
if len(path_list) > 2 : if len(path_list) > 2 :
tmp = os.sep.join(path_list[2:]) tmp = os.sep.join(path_list[2:])
...@@ -892,7 +892,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder): ...@@ -892,7 +892,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
path_added_list = [] path_added_list = []
# remove added files # remove added files
for path in added_files : for path in added_files :
path_list = self._getWorkingPath(path).split(os.sep) path_list = self._getWorkingPath(self.relativeToAbsolute(path, business_template)).split(os.sep)
if 'bt' not in path_list: if 'bt' not in path_list:
if len(path_list) > 2 : if len(path_list) > 2 :
tmp = os.sep.join(path_list[2:]) tmp = os.sep.join(path_list[2:])
......
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