Commit 6858e5f6 authored by Rafael Monnerat's avatar Rafael Monnerat

Prevent Unauthorized issues.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22472 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d37f785
......@@ -76,10 +76,7 @@ for attachment in context.getAttachmentInformationList():\n
filename = context.getTitle()\n
if attachment.has_key("file_name"):\n
filename=attachment["file_name"]\n
if attachment.has_key("content_type"):\n
pt = contribution_registry.findPortalTypeName(mime_type=attachment["content_type"])\n
else:\n
pt = "File"\n
pt = "File"\n
temp_base_id = \'index_\'.join([attachment["uid"], str(attachment["index"])])\n
base_list.append(newTempBase(context, id=temp_base_id,\n
uid=temp_base_id,\n
......
279
\ No newline at end of file
280
\ No newline at end of file
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