From cf2318a76dfa6e1e575685db63c1674c46c4945b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 2 Mar 2016 13:46:16 +0100 Subject: [PATCH] [IMP] tools: sanitizer: frame tag Do not try to keep frames as they are already removed. Indeed tag_to_kill contain the frame tag. This parameter has precedence on the ``frames`` parameter of the cleaner. It was therefore unnecessary. --- openerp/tools/mail.py | 1 - 1 file changed, 1 deletion(-) diff --git a/openerp/tools/mail.py b/openerp/tools/mail.py index e0071c4ba68..a020d6d72b2 100644 --- a/openerp/tools/mail.py +++ b/openerp/tools/mail.py @@ -90,7 +90,6 @@ def html_sanitize(src, silent=True, strict=False, strip_style=False, strip_class }) else: kwargs['safe_attrs_only'] = False # keep oe-data attributes + style - kwargs['frames'] = False, # do not remove frames (embbed video in CMS blogs) try: # some corner cases make the parser crash (such as in test_mail)