[FIX] email_template: a tag link rendering, do not process if no href

This commit is contained in:
Denis Ledoux 2014-09-09 19:17:23 +02:00
parent 36d3979e0d
commit 0aa92fdb03
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class email_template(osv.osv):
# - img src -> check URL
# - a href -> check URL
for node in root.iter():
if node.tag == 'a':
if node.tag == 'a' and node.get('href'):
node.set('href', _process_link(node.get('href')))
elif node.tag == 'img' and not node.get('src', 'data').startswith('data'):
node.set('src', _process_link(node.get('src')))