~acsone-openerp/acsone-addons/7.0

« back to all changes in this revision

Viewing changes to html_widget_embedded_picture/__init__.py

  • Committer: Jonathan Nemry
  • Date: 2014-03-14 15:01:30 UTC
  • Revision ID: jonathan.nemry@acsone.eu-20140314150130-ct9duvzi7a7fhcti
[CHG] some review

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#
28
28
##############################################################################
29
29
from . import controllers
 
30
import lxml
 
31
import re
 
32
 
 
33
new_pattern = '\s*(?:javascript:|jscript:|livescript:|vbscript:|data:[^(?:image/.+;base64)]+|about:|mocha:)'
 
34
print(new_pattern)
 
35
 
 
36
lxml.html.clean._javascript_scheme_re = re.compile(new_pattern, re.I)
30
37
 
31
38
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: