Commit 6fe97c02 authored by Nicolas Delaby's avatar Nicolas Delaby

Coding Crime: never change what user inputs


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent edf7288f
......@@ -243,11 +243,6 @@ class ContributionTool(BaseTool):
)
object_id = document.getId()
document = self._getOb(object_id) # Call _getOb to purge cache
rewrite_method = document._getTypeBasedMethod('rewriteIngestionData')
if rewrite_method is not None:
modified_kw = rewrite_method(**kw.copy())
if modified_kw is not None:
kw.update(modified_kw)
kw['filename'] = filename # Override filename property
# Then edit the document contents (so that upload can happen)
......
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