Commit d10a35dc authored by Fabien Morin's avatar Fabien Morin

revert r38119. I cannot give any explanation to this revert as it is an

order without explanations, sorry


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38128 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74074590
No related merge requests found
......@@ -170,6 +170,8 @@ class ContributionTool(BaseTool):
file_name = url.split('/')[-1] or url.split('/')[-2]
file_name = urllib.quote(file_name, safe='')
file_name = file_name.replace('%', '')
# For URLs, we want an id by default equal to the encoded URL
if id is None: id = self.encodeURL(url)
if hasattr(url_file, 'headers'):
headers = url_file.headers
if hasattr(headers, 'type'):
......
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