Commit 518b838e authored by Nicolas Delaby's avatar Nicolas Delaby

add extra-space to follow new Content-Disposition header value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35422 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 915ba75d
......@@ -64,9 +64,9 @@ if skin_name and skin_name != \'None\': # make_query serializes None as \'None\'
\n
report_data = getattr(context, deferred_style_dialog_method)(**params)\n
\n
attachment_name = [x[len(\'filename=\'):] for x in (request.RESPONSE.getHeader(\n
attachment_name = [x[len(\' filename=\'):] for x in (request.RESPONSE.getHeader(\n
\'content-disposition\') or \'\').split(\';\')\n
if x.startswith(\'filename=\')][0]\n
if x.startswith(\' filename=\')][0]\n
if attachment_name.startswith(\'"\'):\n
attachment_name = attachment_name[1:]\n
if attachment_name.endswith(\'"\'):\n
......
......@@ -78,9 +78,9 @@ report_data = context.restrictedTraverse(form_path).report_view.pt_render(\n
report_method=dummyReportMethod,\n
form=portal.restrictedTraverse(form_path)))\n
\n
attachment_name = [x[len(\'filename=\'):] for x in (request.RESPONSE.getHeader(\n
attachment_name = [x[len(\' filename=\'):] for x in (request.RESPONSE.getHeader(\n
\'content-disposition\') or \'\').split(\';\')\n
if x.startswith(\'filename=\')][0]\n
if x.startswith(\' filename=\')][0]\n
if attachment_name.startswith(\'"\'):\n
attachment_name = attachment_name[1:]\n
if attachment_name.endswith(\'"\'):\n
......
83
\ No newline at end of file
90
\ 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