[FIX] tools: mail: support \[ and \] in tmeplates

bzr revid: tde@openerp.com-20140123152842-21b3gsey1mxt4v37
This commit is contained in:
Thibault Delavallée 2014-01-23 16:28:42 +01:00
parent 69af79ff3d
commit 2bcf4cca79
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ def html_sanitize(src, silent=True, strict=False):
cleaned = cleaned.replace('%7B', '{')
cleaned = cleaned.replace('%7D', '}')
cleaned = cleaned.replace('%20', ' ')
cleaned = cleaned.replace('%5B', '[')
cleaned = cleaned.replace('%5D', ']')
except etree.ParserError, e:
if 'empty' in str(e):
return ""