Skip to content
Snippets Groups Projects
Commit 0aa92fdb authored by Denis Ledoux's avatar Denis Ledoux
Browse files

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

parent 36d3979e
No related branches found
No related tags found
No related merge requests found
......@@ -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')))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment