Commit e88bc8a7 authored by Vincent Pelletier's avatar Vincent Pelletier

vault_path can be an empty string, which would causes category path to have a...

vault_path can be an empty string, which would causes category path to have a trailing slash, which is invalid with current category traversal.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18550 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2713e0aa
...@@ -971,7 +971,7 @@ class BaobabConduit(ERP5Conduit): ...@@ -971,7 +971,7 @@ class BaobabConduit(ERP5Conduit):
if inventory_path is not None: if inventory_path is not None:
result_list.append(inventory_path) result_list.append(inventory_path)
vault_path = self.vault_code_to_path.get(vault_code) vault_path = self.vault_code_to_path.get(vault_code)
if vault_path is not None: if vault_path not in (None, ''):
result_list.append(vault_path) result_list.append(vault_path)
elif vault_code is not None: elif vault_code is not None:
raise ValueError, '%s is not a known vault import codification' % (vault_code, ) raise ValueError, '%s is not a known vault import codification' % (vault_code, )
......
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