diff options
| author | Simon Lejeune <sle@openerp.com> | 2014-12-12 15:22:33 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2014-12-12 16:04:31 +0100 |
| commit | 08604812d81c42904f2eebd7f453bcdcbf060642 (patch) | |
| tree | 758e281c9b3fc956acbe40a8fae2120b82f6d8a6 /doc/reference/javascript.rst | |
| parent | 80bb4422be644d6c615783f2a065bcd6bf39baf4 (diff) | |
[FIX] Report: html escape the error json string
session.get_file appends the json to the body of the generated iframe and
then tries to json.parse it by reading contentNode on the body.
Exceptions from `report_download` method may contain `<` and `>`, so when
json.parse tries to json.parse the contentNode, it reads only a part of
the original json string. htmlescaping the json string solves the issue
by preventing the content of the json string to be interpreted as html.
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions
