diff --git a/CHANGELOG b/CHANGELOG index 3127310773..e275c3209a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Sanitize report file extension + Version 2.6.6 - 2013-10-10 * Bug fixes (see mercurial logs for details) diff --git a/tryton/action/main.py b/tryton/action/main.py index ec681af28d..e466458f8e 100644 --- a/tryton/action/main.py +++ b/tryton/action/main.py @@ -42,7 +42,8 @@ class Action(object): dtemp = tempfile.mkdtemp(prefix='tryton_') fp_name = os.path.join(dtemp, name.replace(os.sep, '_').replace(os.altsep or os.sep, '_') \ - + os.extsep + type) + + os.extsep + + type.replace(os.sep, '_').replace(os.altsep or os.sep, '_')) with open(fp_name, 'wb') as file_d: file_d.write(data) if email_print: